From e5dd0eccf84567323f30b6d1b884409d1b526f2c Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 19 Oct 2017 22:43:48 +0800 Subject: [PATCH] Use Divider component --- src/routes/Dashboard.js | 6 +++--- src/routes/Forms/TableForm.js | 8 ++++---- src/routes/Profile/AdvancedProfile.js | 6 +++--- src/routes/Profile/AdvancedProfile.less | 7 ------- src/routes/Profile/BasicProfile.js | 6 +++--- src/routes/Profile/BasicProfile.less | 8 -------- 6 files changed, 13 insertions(+), 28 deletions(-) diff --git a/src/routes/Dashboard.js b/src/routes/Dashboard.js index 0bb12890..8c108bcb 100644 --- a/src/routes/Dashboard.js +++ b/src/routes/Dashboard.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react'; import { connect } from 'dva'; -import { Row, Col, Card, Table, Icon } from 'antd'; +import { Row, Col, Card, Table, Icon, Divider } from 'antd'; const columns = [{ title: 'Name', @@ -20,9 +20,9 @@ const columns = [{ render: (text, record) => ( Action 一 {record.name} - + Delete - + More actions diff --git a/src/routes/Forms/TableForm.js b/src/routes/Forms/TableForm.js index 93a535a5..b5b78dc9 100644 --- a/src/routes/Forms/TableForm.js +++ b/src/routes/Forms/TableForm.js @@ -1,5 +1,5 @@ import React, { PureComponent } from 'react'; -import { Table, Button, Input, message, Popconfirm } from 'antd'; +import { Table, Button, Input, message, Popconfirm, Divider } from 'antd'; import styles from './style.less'; export default class TableForm extends PureComponent { @@ -177,7 +177,7 @@ export default class TableForm extends PureComponent { return ( this.saveRow(e, record.key)}>保存 - + this.remove(e, record.key)}>删除 ); @@ -185,7 +185,7 @@ export default class TableForm extends PureComponent { return ( this.saveRow(e, record.key)}>保存 - + this.cancel(e, record.key)}>取消 ); @@ -193,7 +193,7 @@ export default class TableForm extends PureComponent { return ( this.toggleEditable(e, record.key)}>编辑 - + this.remove(record.key)}> 删除 diff --git a/src/routes/Profile/AdvancedProfile.js b/src/routes/Profile/AdvancedProfile.js index 6a82ef0c..c55b6bfe 100644 --- a/src/routes/Profile/AdvancedProfile.js +++ b/src/routes/Profile/AdvancedProfile.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import { connect } from 'dva'; -import { Button, Menu, Dropdown, Icon, Row, Col, Steps, Card, Popover, Badge, Table, Tooltip } from 'antd'; +import { Button, Menu, Dropdown, Icon, Row, Col, Steps, Card, Popover, Badge, Table, Tooltip, Divider } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import DescriptionList from '../../components/DescriptionList'; import EditableItem from '../../components/EditableItem'; @@ -229,13 +229,13 @@ export default class AdvancedProfile extends Component { 2017-08-08 这段描述很长很长很长很长很长很长很长很长很长很长很长很长很长很长... -
+ Citrullus lanatus (Thunb.) Matsum. et Nakai一年生蔓生藤本;茎、枝粗壮,具明显的棱。卷须较粗.. -
+ 付小小 1234568 diff --git a/src/routes/Profile/AdvancedProfile.less b/src/routes/Profile/AdvancedProfile.less index 6c8a2ab5..72d681be 100644 --- a/src/routes/Profile/AdvancedProfile.less +++ b/src/routes/Profile/AdvancedProfile.less @@ -18,10 +18,3 @@ .textSecondary { color: @text-color-secondary; } - -.divider { - border: 0; - border-top: 1px solid @border-color-split; - height: 1px; - margin: 0 0 16px 0; -} diff --git a/src/routes/Profile/BasicProfile.js b/src/routes/Profile/BasicProfile.js index 1e76f9a7..9685ff57 100644 --- a/src/routes/Profile/BasicProfile.js +++ b/src/routes/Profile/BasicProfile.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import { connect } from 'dva'; -import { Card, Badge, Table } from 'antd'; +import { Card, Badge, Table, Divider } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import DescriptionList from '../../components/DescriptionList'; import styles from './BasicProfile.less'; @@ -133,7 +133,7 @@ export default class BasicProfile extends Component { 1234123421 3214321432 -
+ 付小小 18100000000 @@ -141,7 +141,7 @@ export default class BasicProfile extends Component { 浙江省杭州市西湖区万塘路18号 -
+
退货商品