From ed9fc679b850ca0d2247d181dc8d449e47b33879 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 25 Feb 2016 15:32:59 +0800 Subject: [PATCH] Remove some demos --- components/notification/demo/onclose.md | 30 ----------------------- components/steps/demo/status.md | 32 ------------------------- 2 files changed, 62 deletions(-) delete mode 100644 components/notification/demo/onclose.md delete mode 100644 components/steps/demo/status.md diff --git a/components/notification/demo/onclose.md b/components/notification/demo/onclose.md deleted file mode 100644 index 9f887d6c98..0000000000 --- a/components/notification/demo/onclose.md +++ /dev/null @@ -1,30 +0,0 @@ -# 回调函数 - -- order: 3 - -点击关闭按钮时触发回调函数。 - ---- - -````jsx -import { Button, notification } from 'antd'; - -const close = function () { - console.log('我被默认的关闭按钮关闭了!'); -}; - -const openNotification = function () { - const args = { - message: '这是标题', - description: '这是提示框的文案这是提示框示框的文案这是提示是提示框的文案这是提示框的文案', - onClose: close - }; - notification.open(args); -}; - -ReactDOM.render( -
- -
, -mountNode); -```` diff --git a/components/steps/demo/status.md b/components/steps/demo/status.md deleted file mode 100644 index e6a99363de..0000000000 --- a/components/steps/demo/status.md +++ /dev/null @@ -1,32 +0,0 @@ -# 自定义状态 - -- order: 10 - -可以使用 `status` 定义每个步骤的状态。 - ---- - -````jsx -import { Steps } from 'antd'; -const Step = Steps.Step; - -const steps = [{ - status: 'finish', - title: '已完成', - description: '这里是多信息的描述啊' -}, { - status: 'process', - title: '进行中', - description: '这里是多信息的耶哦耶哦哦耶哦耶' -}, { - status: 'wait', - title: '又一个待运行', - description: '描述啊描述啊' -}, { - status: 'wait', - title: '待运行', - description: '这里是多信息的描述啊' -}].map((s, i) => ); - -ReactDOM.render({steps}, mountNode); -````