diff --git a/src/routes/dashboard.js b/src/routes/dashboard.js index b570a4c..0054bb9 100644 --- a/src/routes/dashboard.js +++ b/src/routes/dashboard.js @@ -3,6 +3,7 @@ import {Link} from 'dva/router' import {Row, Col, Icon, Card} from 'antd' import NumberCard from '../components/dashboard/numberCard' import Sales from '../components/dashboard/sales' +import styles from './dashboard.less' import {color} from '../utils' const numberCardData = [ @@ -36,21 +37,43 @@ function Dashboard() { const numberCards = numberCardData.map((item,key) => ) - return ( -
- - {numberCards} - - - - - - - - -
- ) -} + return ( + {numberCards} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + )} Dashboard.propTypes = { location: PropTypes.object diff --git a/src/routes/dashboard.less b/src/routes/dashboard.less new file mode 100644 index 0000000..50e33d5 --- /dev/null +++ b/src/routes/dashboard.less @@ -0,0 +1,6 @@ +:global { + .ant-card { + border-radius: 0; + margin-bottom: 24px; + } +}