From 298785bdeabf866c9889eb03ddf6b7b6ef573f8a Mon Sep 17 00:00:00 2001 From: niko <644506165@qq.com> Date: Sun, 29 Oct 2017 22:31:09 -0500 Subject: [PATCH] fixed: https://github.com/ant-design/ant-design-pro/issues/40 (#44) --- src/routes/Dashboard/Monitor.js | 14 ++++---------- src/routes/Dashboard/Monitor.less | 1 + 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/routes/Dashboard/Monitor.js b/src/routes/Dashboard/Monitor.js index 8ce7dbab..5c888a65 100644 --- a/src/routes/Dashboard/Monitor.js +++ b/src/routes/Dashboard/Monitor.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react'; import { connect } from 'dva'; -import { Row, Col, Card } from 'antd'; +import { Row, Col, Card, Tooltip } from 'antd'; import numeral from 'numeral'; import { Pie, WaterWave, Gauge, TagCloud } from '../../components/Charts'; @@ -10,14 +10,6 @@ import ActiveChart from '../../components/ActiveChart'; import styles from './Monitor.less'; -const MapData = []; -for (let i = 0; i < 50; i += 1) { - MapData.push({ - x: Math.floor(Math.random() * 600), - y: Math.floor(Math.random() * 400), - value: Math.floor(Math.random() * 1000) + 500, - }); -} const targetTime = new Date().getTime() + 3900000; @connect(state => ({ @@ -68,7 +60,9 @@ export default class Monitor extends PureComponent {
- map + + map +
diff --git a/src/routes/Dashboard/Monitor.less b/src/routes/Dashboard/Monitor.less index c0c3d2d9..4acca07d 100644 --- a/src/routes/Dashboard/Monitor.less +++ b/src/routes/Dashboard/Monitor.less @@ -6,6 +6,7 @@ height: 457px; img { width: 100%; + max-height: 457px; } } -- GitLab