From b4d7f6cd7a069ec8462dfed9ffd54838ba0eb80d Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Wed, 6 Sep 2017 16:30:29 +0800 Subject: [PATCH] List & Dashboard Design Review --- src/components/Charts/MiniArea/index.js | 3 +- src/components/Charts/MiniProgress/index.js | 17 ++++++---- src/components/Charts/MiniProgress/index.less | 1 + src/components/Charts/Pie/index.js | 4 ++- src/components/TagCloud/index.js | 2 +- src/layouts/PageHeaderLayout.js | 3 +- src/routes/Dashboard/Analysis.js | 6 +++- src/routes/Dashboard/Analysis.less | 5 +++ src/routes/Dashboard/Monitor.js | 34 +++++++++++++------ src/routes/Dashboard/Workplace.js | 2 +- 10 files changed, 54 insertions(+), 23 deletions(-) diff --git a/src/components/Charts/MiniArea/index.js b/src/components/Charts/MiniArea/index.js index 5807c352..d763649c 100644 --- a/src/components/Charts/MiniArea/index.js +++ b/src/components/Charts/MiniArea/index.js @@ -18,7 +18,7 @@ class MiniArea extends PureComponent { } renderChart(data) { - const { height = 0, fit = true, color = '#33abfb', line, xAxis, yAxis } = this.props; + const { height = 0, fit = true, color = '#33abfb', line, xAxis, yAxis, animate = true } = this.props; if (!data || (data && data.length < 1)) { return; @@ -31,6 +31,7 @@ class MiniArea extends PureComponent { container: this.node, forceFit: fit, height: height + 54, + animate, plotCfg: { margin: [36, 0, 30, 0], }, diff --git a/src/components/Charts/MiniProgress/index.js b/src/components/Charts/MiniProgress/index.js index 63037a1c..8d1d82a2 100644 --- a/src/components/Charts/MiniProgress/index.js +++ b/src/components/Charts/MiniProgress/index.js @@ -1,16 +1,19 @@ import React from 'react'; +import { Popover } from 'antd'; import styles from './index.less'; const MiniProgress = ({ target, color, strokeWidth, percent }) => (