From 17e8977e589a7c4b2fbb8795ed70c124dbe1ac33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 18 Jun 2019 15:02:09 +0800 Subject: [PATCH] fix: fix #3312, The height of the card is different --- .../src/components/Charts/MiniArea/index.tsx | 23 ++++++++----------- .../src/components/IntroduceRow.tsx | 2 +- .../src/components/OfflineData.tsx | 2 +- .../src/components/ProportionSales.tsx | 11 ++++----- .../src/components/SalesCard.tsx | 2 +- .../src/components/TopSearch.tsx | 6 +++-- DashboardAnalysis/src/index.tsx | 8 ++++++- .../src/components/Charts/MiniArea/index.tsx | 7 ++---- package.json | 2 +- 9 files changed, 31 insertions(+), 32 deletions(-) diff --git a/DashboardAnalysis/src/components/Charts/MiniArea/index.tsx b/DashboardAnalysis/src/components/Charts/MiniArea/index.tsx index 7aa55dd9..2e12183b 100644 --- a/DashboardAnalysis/src/components/Charts/MiniArea/index.tsx +++ b/DashboardAnalysis/src/components/Charts/MiniArea/index.tsx @@ -28,9 +28,6 @@ export interface MiniAreaProps { }[]; } -// g2 4.0 发布之前只能这样先修一下了 -const FixTypeAxis: any = Axis; - const MiniArea: React.FC = props => { const { height = 1, @@ -82,22 +79,22 @@ const MiniArea: React.FC = props => { data={data} padding={padding} > - - diff --git a/DashboardAnalysis/src/components/IntroduceRow.tsx b/DashboardAnalysis/src/components/IntroduceRow.tsx index 8057b6c8..e97a96a8 100644 --- a/DashboardAnalysis/src/components/IntroduceRow.tsx +++ b/DashboardAnalysis/src/components/IntroduceRow.tsx @@ -19,7 +19,7 @@ const topColResponsiveProps = { }; const IntroduceRow = ({ loading, visitData }: { loading: boolean; visitData: VisitDataType[] }) => ( - + ( - + } - bodyStyle={{ padding: 24 }} + style={{ + height: '100%', + }} extra={
{dropdownGroup} @@ -50,13 +52,8 @@ const ProportionSales = ({
} - style={{ marginTop: 24 }} > -
+

diff --git a/DashboardAnalysis/src/components/SalesCard.tsx b/DashboardAnalysis/src/components/SalesCard.tsx index 269e1902..c7317eb1 100644 --- a/DashboardAnalysis/src/components/SalesCard.tsx +++ b/DashboardAnalysis/src/components/SalesCard.tsx @@ -67,7 +67,7 @@ const SalesCard = ({ tab={} key="sales" > - +
} extra={dropdownGroup} - style={{ marginTop: 24 }} + style={{ + height: '100%', + }} > - + - + = props => { const { height = 1, @@ -82,7 +79,7 @@ const MiniArea: React.FC = props => { data={data} padding={padding} > - = props => { grid={null} {...xAxis} /> -