From a949a3c2001a7a3b334b976ae03e5b6426bb498d Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Tue, 10 Oct 2017 23:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E8=A7=89=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DescriptionList/index.less | 2 +- src/components/PageHeader/demo/standard.md | 5 ++-- src/components/PageHeader/index.less | 17 +++++++++-- src/routes/Profile/AdvancedProfile.js | 33 +++++++++++----------- src/routes/Profile/AdvancedProfile.less | 2 +- src/routes/Profile/BasicProfile.js | 11 +++++--- src/routes/Profile/BasicProfile.less | 11 ++++++-- 7 files changed, 51 insertions(+), 30 deletions(-) diff --git a/src/components/DescriptionList/index.less b/src/components/DescriptionList/index.less index a8f88a3d..a9855951 100644 --- a/src/components/DescriptionList/index.less +++ b/src/components/DescriptionList/index.less @@ -11,7 +11,7 @@ .title { color: @heading-color; - font-weight: 600; + font-weight: 500; margin-bottom: 16px; } diff --git a/src/components/PageHeader/demo/standard.md b/src/components/PageHeader/demo/standard.md index 41c5d892..47818219 100644 --- a/src/components/PageHeader/demo/standard.md +++ b/src/components/PageHeader/demo/standard.md @@ -19,13 +19,14 @@ const menu = ( const action = (
- - + + +
); diff --git a/src/components/PageHeader/index.less b/src/components/PageHeader/index.less index 6f84a1c1..ce2329d1 100644 --- a/src/components/PageHeader/index.less +++ b/src/components/PageHeader/index.less @@ -2,7 +2,7 @@ .pageHeader { background: @component-background; - padding: 18px 28px 0 36px; + padding: 16px 32px 0 32px; border-bottom: @border-width-base @border-style-base @border-color-split; .detail { @@ -14,7 +14,7 @@ } .breadcrumb { - margin-bottom: 18px; + margin-bottom: 16px; } .tabs { @@ -42,6 +42,17 @@ .action { margin-left: 56px; min-width: 266px; + + :global { + .ant-btn-group:not(:last-child), + .ant-btn:not(:last-child) { + margin-right: 8px; + } + + .ant-btn-group > .ant-btn { + margin-right: 0; + } + } } .title, .action, .content, .extraContent, .main { @@ -107,7 +118,7 @@ .pageHeader { .action { :global { - .ant-btn-group, :not(.ant-btn-group) .ant-button { + .ant-btn-group, :not(.ant-btn-group) .ant-btn { display: block; margin-bottom: 8px; } diff --git a/src/routes/Profile/AdvancedProfile.js b/src/routes/Profile/AdvancedProfile.js index eba10d47..6a82ef0c 100644 --- a/src/routes/Profile/AdvancedProfile.js +++ b/src/routes/Profile/AdvancedProfile.js @@ -7,7 +7,6 @@ import EditableItem from '../../components/EditableItem'; import styles from './AdvancedProfile.less'; const { Step } = Steps; -const ButtonGroup = Button.Group; const { Description } = DescriptionList; const menu = ( @@ -20,15 +19,13 @@ const menu = ( const action = (
- - - - - - - + + + + +
); @@ -66,9 +63,10 @@ const tabList = [{ }]; const desc1 = ( -
-
- 曲丽丽 +
+
+ 曲丽丽 +
2016-12-12 12:32
@@ -76,8 +74,9 @@ const desc1 = ( const desc2 = (
-
- 周毛毛 +
+ 周毛毛 +
@@ -89,12 +88,12 @@ const popoverContent = ( -

耗时:2小时25分钟

+

耗时:2小时25分钟

); const customDot = (dot, { status }) => (status === 'process' ? - + {dot} : dot diff --git a/src/routes/Profile/AdvancedProfile.less b/src/routes/Profile/AdvancedProfile.less index f33e342f..6c8a2ab5 100644 --- a/src/routes/Profile/AdvancedProfile.less +++ b/src/routes/Profile/AdvancedProfile.less @@ -23,5 +23,5 @@ border: 0; border-top: 1px solid @border-color-split; height: 1px; - margin: 0 0 24px 0; + margin: 0 0 16px 0; } diff --git a/src/routes/Profile/BasicProfile.js b/src/routes/Profile/BasicProfile.js index 7e98c32b..1e76f9a7 100644 --- a/src/routes/Profile/BasicProfile.js +++ b/src/routes/Profile/BasicProfile.js @@ -99,11 +99,13 @@ export default class BasicProfile extends Component { title: '单价', dataIndex: 'price', key: 'price', + className: 'col-money', render: renderContent, }, { title: '数量(件)', dataIndex: 'num', key: 'num', + className: 'col-money', render: (text, row, index) => { if (index < basicGoods.length) { return text; @@ -114,6 +116,7 @@ export default class BasicProfile extends Component { title: '金额', dataIndex: 'amount', key: 'amount', + className: 'col-money', render: (text, row, index) => { if (index < basicGoods.length) { return text; @@ -124,19 +127,19 @@ export default class BasicProfile extends Component { return ( - + 1000000000 已取货 1234123421 3214321432
- + 付小小 18100000000 菜鸟仓储 浙江省杭州市西湖区万塘路18号 - 没啥 +
退货商品
@@ -150,7 +153,7 @@ export default class BasicProfile extends Component { />
退货进度