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

34 lines
691 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 5
2016-07-21 10:07:30 +08:00
title:
zh-CN: 竖直方向的小型步骤条
en-US: Vertical mini version
2016-03-31 09:40:55 +08:00
---
2015-08-27 13:20:31 +08:00
2016-07-21 10:07:30 +08:00
## zh-CN
2015-08-27 13:20:31 +08:00
简单的竖直方向的小型步骤条。
2016-07-21 10:07:30 +08:00
## en-US
A simple mini version step bar in the vertical direction.
2015-08-27 13:20:31 +08:00
````jsx
import { Steps } from 'antd';
const Step = Steps.Step;
2015-08-27 13:20:31 +08:00
const steps = [{
2015-08-27 13:20:31 +08:00
title: '已完成',
2016-05-11 09:32:33 +08:00
description: '这里是信息的描述',
2015-08-27 13:20:31 +08:00
}, {
title: '进行中',
2016-05-11 09:32:33 +08:00
description: '这里是信息的描述',
2015-08-27 13:20:31 +08:00
}, {
title: '待运行',
2016-05-11 09:32:33 +08:00
description: '这里是信息的描述',
}].map((s, i) => <Step key={i} title={s.title} description={s.description} />);
2015-08-27 13:20:31 +08:00
2015-12-16 15:25:15 +08:00
ReactDOM.render(<Steps size="small" direction="vertical" current={1}>{steps}</Steps>,
mountNode);
2015-08-27 13:20:31 +08:00
````