Commit 17e8977e authored by 陈帅's avatar 陈帅

fix: fix #3312, The height of the card is different

parent b600e1e5
...@@ -28,9 +28,6 @@ export interface MiniAreaProps { ...@@ -28,9 +28,6 @@ export interface MiniAreaProps {
}[]; }[];
} }
// g2 4.0 发布之前只能这样先修一下了
const FixTypeAxis: any = Axis;
const MiniArea: React.FC<MiniAreaProps> = props => { const MiniArea: React.FC<MiniAreaProps> = props => {
const { const {
height = 1, height = 1,
...@@ -82,22 +79,22 @@ const MiniArea: React.FC<MiniAreaProps> = props => { ...@@ -82,22 +79,22 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
data={data} data={data}
padding={padding} padding={padding}
> >
<FixTypeAxis <Axis
key="axis-x" key="axis-x"
name="x" name="x"
label={undefined} label={null}
line={undefined} line={null}
tickLine={undefined} tickLine={null}
grid={undefined} grid={null}
{...xAxis} {...xAxis}
/> />
<FixTypeAxis <Axis
key="axis-y" key="axis-y"
name="y" name="y"
label={undefined} label={null}
line={undefined} line={null}
tickLine={undefined} tickLine={null}
grid={undefined} grid={null}
{...yAxis} {...yAxis}
/> />
<Tooltip showTitle={false} crosshairs={false} /> <Tooltip showTitle={false} crosshairs={false} />
......
...@@ -19,7 +19,7 @@ const topColResponsiveProps = { ...@@ -19,7 +19,7 @@ const topColResponsiveProps = {
}; };
const IntroduceRow = ({ loading, visitData }: { loading: boolean; visitData: VisitDataType[] }) => ( const IntroduceRow = ({ loading, visitData }: { loading: boolean; visitData: VisitDataType[] }) => (
<Row gutter={24}> <Row gutter={24} type="flex">
<Col {...topColResponsiveProps}> <Col {...topColResponsiveProps}>
<ChartCard <ChartCard
bordered={false} bordered={false}
......
...@@ -14,7 +14,7 @@ const CustomTab = ({ ...@@ -14,7 +14,7 @@ const CustomTab = ({
data: OfflineDataType; data: OfflineDataType;
currentTabKey: string; currentTabKey: string;
}) => ( }) => (
<Row gutter={8} style={{ width: 138, margin: '8px 0' }}> <Row gutter={8} style={{ width: 138, margin: '8px 0' }} type="flex">
<Col span={12}> <Col span={12}>
<NumberInfo <NumberInfo
title={data.name} title={data.name}
......
...@@ -31,7 +31,9 @@ const ProportionSales = ({ ...@@ -31,7 +31,9 @@ const ProportionSales = ({
defaultMessage="The Proportion of Sales" defaultMessage="The Proportion of Sales"
/> />
} }
bodyStyle={{ padding: 24 }} style={{
height: '100%',
}}
extra={ extra={
<div className={styles.salesCardExtra}> <div className={styles.salesCardExtra}>
{dropdownGroup} {dropdownGroup}
...@@ -50,13 +52,8 @@ const ProportionSales = ({ ...@@ -50,13 +52,8 @@ const ProportionSales = ({
</div> </div>
</div> </div>
} }
style={{ marginTop: 24 }}
>
<div
style={{
minHeight: 380,
}}
> >
<div>
<h4 style={{ marginTop: 8, marginBottom: 32 }}> <h4 style={{ marginTop: 8, marginBottom: 32 }}>
<FormattedMessage id="BLOCK_NAME.analysis.sales" defaultMessage="Sales" /> <FormattedMessage id="BLOCK_NAME.analysis.sales" defaultMessage="Sales" />
</h4> </h4>
......
...@@ -67,7 +67,7 @@ const SalesCard = ({ ...@@ -67,7 +67,7 @@ const SalesCard = ({
tab={<FormattedMessage id="BLOCK_NAME.analysis.sales" defaultMessage="Sales" />} tab={<FormattedMessage id="BLOCK_NAME.analysis.sales" defaultMessage="Sales" />}
key="sales" key="sales"
> >
<Row> <Row type="flex">
<Col xl={16} lg={12} md={12} sm={24} xs={24}> <Col xl={16} lg={12} md={12} sm={24} xs={24}>
<div className={styles.salesBar}> <div className={styles.salesBar}>
<Bar <Bar
......
...@@ -64,9 +64,11 @@ const TopSearch = ({ ...@@ -64,9 +64,11 @@ const TopSearch = ({
/> />
} }
extra={dropdownGroup} extra={dropdownGroup}
style={{ marginTop: 24 }} style={{
height: '100%',
}}
> >
<Row gutter={68}> <Row gutter={68} type="flex">
<Col sm={12} xs={24} style={{ marginBottom: 24 }}> <Col sm={12} xs={24} style={{ marginBottom: 24 }}>
<NumberInfo <NumberInfo
subTitle={ subTitle={
......
...@@ -176,7 +176,13 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -176,7 +176,13 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
selectDate={this.selectDate} selectDate={this.selectDate}
/> />
</Suspense> </Suspense>
<Row gutter={24}> <Row
gutter={24}
type="flex"
style={{
marginTop: 24,
}}
>
<Col xl={12} lg={24} md={24} sm={24} xs={24}> <Col xl={12} lg={24} md={24} sm={24} xs={24}>
<Suspense fallback={null}> <Suspense fallback={null}>
<TopSearch <TopSearch
......
...@@ -28,9 +28,6 @@ export interface MiniAreaProps { ...@@ -28,9 +28,6 @@ export interface MiniAreaProps {
}[]; }[];
} }
// g2 4.0 发布之前只能这样先修一下了
const FixTypeAxis: any = Axis;
const MiniArea: React.FC<MiniAreaProps> = props => { const MiniArea: React.FC<MiniAreaProps> = props => {
const { const {
height = 1, height = 1,
...@@ -82,7 +79,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => { ...@@ -82,7 +79,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
data={data} data={data}
padding={padding} padding={padding}
> >
<FixTypeAxis <Axis
key="axis-x" key="axis-x"
name="x" name="x"
label={null} label={null}
...@@ -91,7 +88,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => { ...@@ -91,7 +88,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
grid={null} grid={null}
{...xAxis} {...xAxis}
/> />
<FixTypeAxis <Axis
key="axis-y" key="axis-y"
name="y" name="y"
label={null} label={null}
......
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "cross-env PAGES_PATH='DashboardMonitor/src' umi dev", "dev": "cross-env PAGES_PATH='DashboardAnalysis/src' umi dev",
"start": "umi dev", "start": "umi dev",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"lint": "npm run lint:js && npm run lint:style", "lint": "npm run lint:js && npm run lint:style",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment