From b4b6aadf3b1b585963cfb7744137149e376ef17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E4=B9=90?= Date: Wed, 16 Jan 2019 11:50:05 +0800 Subject: [PATCH] fix: different card heights in Analysis (#3386) * fix: different card heights in Analysis * add padding for Pie in ProportionSales * adjust style --- src/pages/Dashboard/Analysis.js | 50 +++++++++++++------------- src/pages/Dashboard/Analysis.less | 19 ++++++++++ src/pages/Dashboard/ProportionSales.js | 31 +++++++--------- 3 files changed, 58 insertions(+), 42 deletions(-) diff --git a/src/pages/Dashboard/Analysis.js b/src/pages/Dashboard/Analysis.js index 58261ebb..0b85db70 100644 --- a/src/pages/Dashboard/Analysis.js +++ b/src/pages/Dashboard/Analysis.js @@ -144,30 +144,32 @@ class Analysis extends Component { selectDate={this.selectDate} /> - - - - - - - - - - - - +
+ + + + + + + + + + + + +
-
-

- -

- } - total={() => {salesPieData.reduce((pre, now) => now.y + pre, 0)}} - data={salesPieData} - valueFormat={value => {value}} - height={248} - lineWidth={4} - /> -
+

+ +

+ } + total={() => {salesPieData.reduce((pre, now) => now.y + pre, 0)}} + data={salesPieData} + valueFormat={value => {value}} + height={270} + lineWidth={4} + style={{ padding: '8px 0' }} + /> ) ); -- GitLab