mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
Remove some demos
This commit is contained in:
parent
ab67c71939
commit
ed9fc679b8
@ -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(
|
||||
<div>
|
||||
<Button type="primary" onClick={openNotification}>打开通知提醒框</Button>
|
||||
</div>,
|
||||
mountNode);
|
||||
````
|
@ -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) => <Step key={i} title={s.title} description={s.description} />);
|
||||
|
||||
ReactDOM.render(<Steps>{steps}</Steps>, mountNode);
|
||||
````
|
Loading…
Reference in New Issue
Block a user