From 9fc2c15a24c2dfd05b1c3b2667a7b787dcf98491 Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Wed, 18 Oct 2017 17:57:36 +0800 Subject: [PATCH] update result pages --- src/components/Result/demo/classic.md | 32 +++++++++++++++++++-------- src/components/Result/demo/error.md | 12 +++++----- src/components/Result/index.less | 4 ++-- src/routes/Result/Error.js | 10 ++++----- src/routes/Result/Success.js | 29 +++++++++++++++--------- 5 files changed, 55 insertions(+), 32 deletions(-) diff --git a/src/components/Result/demo/classic.md b/src/components/Result/demo/classic.md index 9d371a2f..3988d958 100644 --- a/src/components/Result/demo/classic.md +++ b/src/components/Result/demo/classic.md @@ -12,28 +12,41 @@ import { Button, Row, Col, Icon, Steps } from 'antd'; const { Step } = Steps; const desc1 = ( -
-
曲丽丽
+
+
+ 曲丽丽 +
2016-12-12 12:32
); const desc2 = ( -
-
周毛毛
+
+
+ 周毛毛 +
催一下
); const extra = (
-
+
项目名称
- - 项目 ID:23421 - 负责人:曲丽丽 - 生效时间:2016-12-12 ~ 2017-12-12 + + + 项目 ID: + 23421 + + + 负责人: + 曲丽丽 + + + 生效时间: + 2016-12-12 ~ 2017-12-12 + @@ -59,6 +72,7 @@ ReactDOM.render( description="提交结果页用于反馈一系列操作任务的处理结果,如果仅是简单操作,使用 Message 全局提示反馈即可。本文字区域可以展示简单的补充说明,如果有类似展示“单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。" extra={extra} actions={actions} + style={{ width: '100%' }} /> , mountNode); ```` diff --git a/src/components/Result/demo/error.md b/src/components/Result/demo/error.md index d6f3a0e3..d668b8b1 100644 --- a/src/components/Result/demo/error.md +++ b/src/components/Result/demo/error.md @@ -11,16 +11,16 @@ import { Button, Icon } from 'antd'; const extra = (
-
+
您提交的内容有如下错误:
-
- 您的账户已被冻结 - 立即解冻 +
+ 您的账户已被冻结 + 立即解冻
- 您的账户还不具备申请资格 - 立即升级 + 您的账户还不具备申请资格 + 立即升级
); diff --git a/src/components/Result/index.less b/src/components/Result/index.less index 68652a9e..661b4af1 100644 --- a/src/components/Result/index.less +++ b/src/components/Result/index.less @@ -34,8 +34,8 @@ } .extra { - background: rgba(245, 245, 245, 0.5); - padding: 16px 40px; + background: #fafafa; + padding: 24px 40px; margin-top: 24px; border-radius: @border-radius-sm; text-align: left; diff --git a/src/routes/Result/Error.js b/src/routes/Result/Error.js index 371d4e3b..f633c340 100644 --- a/src/routes/Result/Error.js +++ b/src/routes/Result/Error.js @@ -5,16 +5,16 @@ import PageHeaderLayout from '../../layouts/PageHeaderLayout'; const extra = (
-
+
您提交的内容有如下错误:
-
+
您的账户已被冻结 - 立即解冻 + 立即解冻
您的账户还不具备申请资格 - 立即升级 + 立即升级
); @@ -30,7 +30,7 @@ export default () => ( description="请核对并修改以下信息后,再重新提交。" extra={extra} actions={actions} - style={{ marginTop: 30, marginBottom: 30 }} + style={{ marginTop: 48, marginBottom: 16 }} /> diff --git a/src/routes/Result/Success.js b/src/routes/Result/Success.js index 2e461460..75a2e2f6 100644 --- a/src/routes/Result/Success.js +++ b/src/routes/Result/Success.js @@ -6,8 +6,8 @@ import PageHeaderLayout from '../../layouts/PageHeaderLayout'; const { Step } = Steps; const desc1 = ( -
-
+
+
曲丽丽
2016-12-12 12:32
@@ -15,8 +15,8 @@ const desc1 = ( ); const desc2 = ( -
-
+
+
周毛毛
@@ -25,13 +25,22 @@ const desc2 = ( const extra = (
-
+
项目名称
- - 项目 ID:23421 - 负责人:曲丽丽 - 生效时间:2016-12-12 ~ 2017-12-12 + + + 项目 ID: + 23421 + + + 负责人: + 曲丽丽 + + + 生效时间: + 2016-12-12 ~ 2017-12-12 + @@ -62,7 +71,7 @@ export default () => ( “单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。" extra={extra} actions={actions} - style={{ marginTop: 30, marginBottom: 30 }} + style={{ marginTop: 48, marginBottom: 16 }} /> -- GitLab