2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 0
|
|
|
|
title: 基本用法
|
|
|
|
---
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2015-06-26 10:46:21 +08:00
|
|
|
简单的步骤条。
|
2015-06-25 16:01:04 +08:00
|
|
|
|
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Steps } from 'antd';
|
|
|
|
const Step = Steps.Step;
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2015-10-28 20:55:49 +08:00
|
|
|
const steps = [{
|
2015-06-25 16:01:04 +08:00
|
|
|
title: '已完成',
|
2016-05-11 09:32:33 +08:00
|
|
|
description: '这里是多信息的描述啊',
|
2015-06-25 16:01:04 +08:00
|
|
|
}, {
|
|
|
|
title: '进行中',
|
2016-05-11 09:32:33 +08:00
|
|
|
description: '这里是多信息的耶哦耶哦哦耶哦耶',
|
2015-06-25 16:01:04 +08:00
|
|
|
}, {
|
2015-07-07 19:36:42 +08:00
|
|
|
title: '又一个待运行',
|
2016-05-11 09:32:33 +08:00
|
|
|
description: '描述啊描述啊',
|
2015-06-25 16:01:04 +08:00
|
|
|
}, {
|
|
|
|
title: '待运行',
|
2016-05-11 09:32:33 +08:00
|
|
|
description: '这里是多信息的描述啊',
|
2016-01-23 15:22:16 +08:00
|
|
|
}].map((s, i) => <Step key={i} title={s.title} description={s.description} />);
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2015-12-29 12:08:58 +08:00
|
|
|
ReactDOM.render(<Steps current={1}>{steps}</Steps>, mountNode);
|
2015-06-25 20:01:20 +08:00
|
|
|
````
|