2015-08-27 13:20:31 +08:00
|
|
|
# 竖直方向的小型步骤条
|
|
|
|
|
|
|
|
- order: 5
|
|
|
|
|
|
|
|
简单的竖直方向的小型步骤条。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Steps, Button } from 'antd';
|
|
|
|
const Step = Steps.Step;
|
|
|
|
const container = document.getElementById('components-steps-demo-vertical-small');
|
2015-08-27 13:20:31 +08:00
|
|
|
|
2015-10-28 20:55:49 +08:00
|
|
|
const steps = [{
|
2015-08-27 13:20:31 +08:00
|
|
|
title: '已完成',
|
2015-09-01 15:30:51 +08:00
|
|
|
description: '这里是信息的描述'
|
2015-08-27 13:20:31 +08:00
|
|
|
}, {
|
|
|
|
title: '进行中',
|
2015-09-01 15:30:51 +08:00
|
|
|
description: '这里是信息的描述'
|
2015-08-27 13:20:31 +08:00
|
|
|
}, {
|
|
|
|
title: '待运行',
|
2015-09-01 15:30:51 +08:00
|
|
|
description: '这里是信息的描述'
|
2015-08-27 13:20:31 +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-27 13:20:31 +08:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(<Steps size='small' direction='vertical' current={1}>{steps}</Steps>, container);
|
2015-08-27 13:20:31 +08:00
|
|
|
````
|