2015-08-26 18:28:29 +08:00
|
|
|
# 竖直方向的步骤条
|
|
|
|
|
|
|
|
- order: 4
|
|
|
|
|
2015-08-27 13:20:31 +08:00
|
|
|
简单的竖直方向的步骤条。
|
2015-08-26 18:28:29 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
2015-11-25 17:35:49 +08:00
|
|
|
import { Steps } from 'antd';
|
2015-10-28 20:55:49 +08:00
|
|
|
const Step = Steps.Step;
|
2015-08-26 18:28:29 +08:00
|
|
|
|
2015-10-28 20:55:49 +08:00
|
|
|
const steps = [{
|
2015-08-26 18:28:29 +08:00
|
|
|
title: '已完成',
|
2015-09-01 15:30:51 +08:00
|
|
|
description: '这里是信息的描述'
|
2015-08-26 18:28:29 +08:00
|
|
|
}, {
|
|
|
|
title: '进行中',
|
2015-09-01 15:30:51 +08:00
|
|
|
description: '这里是信息的描述'
|
2015-08-26 18:28:29 +08:00
|
|
|
}, {
|
2015-08-31 20:51:45 +08:00
|
|
|
title: '待运行',
|
2015-09-01 15:30:51 +08:00
|
|
|
description: '这里是信息的描述'
|
2015-08-26 18:28:29 +08:00
|
|
|
}, {
|
2015-08-31 20:51:45 +08:00
|
|
|
title: '又一个待运行',
|
2015-09-01 15:30:51 +08:00
|
|
|
description: '这里是信息的描述'
|
2015-08-26 18:28:29 +08:00
|
|
|
}].map(function(s, i) {
|
2015-09-16 16:28:57 +08:00
|
|
|
return (
|
|
|
|
<Step key={i} title={s.title} description={s.description} />
|
2015-08-26 18:28:29 +08:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
2015-12-16 15:25:15 +08:00
|
|
|
ReactDOM.render(<Steps direction="vertical" current={1}>{steps}</Steps>,
|
2015-12-29 12:08:58 +08:00
|
|
|
mountNode);
|
2015-08-26 18:28:29 +08:00
|
|
|
````
|