ant-design/components/steps/demo/vertical-small.md

37 lines
740 B
Markdown
Raw Normal View History

2015-08-27 13:20:31 +08:00
# 竖直方向的小型步骤条
- order: 5
简单的竖直方向的小型步骤条。
---
````jsx
var Steps = antd.Steps;
var Step = Steps.Step;
var container = document.getElementById('components-steps-demo-vertical-small');
var steps = [{
status: 'finish',
title: '已完成',
2015-09-01 15:30:51 +08:00
description: '这里是信息的描述'
2015-08-27 13:20:31 +08:00
}, {
status: 'process',
title: '进行中',
2015-09-01 15:30:51 +08:00
description: '这里是信息的描述'
2015-08-27 13:20:31 +08:00
}, {
status: 'wait',
title: '待运行',
2015-09-01 15:30:51 +08:00
description: '这里是信息的描述'
2015-08-27 13:20:31 +08:00
}].map(function(s, i) {
return (<Step
key={i}
status={s.status}
title={s.title}
description={s.description}></Step>
);
});
2015-08-28 11:09:10 +08:00
React.render(<Steps size='small' direction='vertical'>{steps}</Steps>, container);
2015-08-27 13:20:31 +08:00
````