2015-06-25 20:01:20 +08:00
|
|
|
# 基本用法
|
2015-06-25 16:01:04 +08:00
|
|
|
|
|
|
|
- order: 0
|
|
|
|
|
2015-06-26 10:46:21 +08:00
|
|
|
简单的步骤条。
|
2015-06-25 16:01:04 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
var Steps = antd.Steps;
|
2015-06-26 10:46:21 +08:00
|
|
|
var Step = Steps.Step;
|
2015-06-25 16:01:04 +08:00
|
|
|
var container = document.getElementById('components-steps-demo-simple');
|
|
|
|
|
|
|
|
var steps = [{
|
|
|
|
status: 'finish',
|
|
|
|
title: '已完成',
|
2015-06-26 10:46:21 +08:00
|
|
|
description: '这里是多信息的描述啊'
|
2015-06-25 16:01:04 +08:00
|
|
|
}, {
|
|
|
|
status: 'process',
|
|
|
|
title: '进行中',
|
2015-07-14 17:57:32 +08:00
|
|
|
description: '这里是多信息的耶哦耶哦哦耶哦耶'
|
2015-06-25 16:01:04 +08:00
|
|
|
}, {
|
|
|
|
status: 'wait',
|
2015-07-07 19:36:42 +08:00
|
|
|
title: '又一个待运行',
|
|
|
|
description: '描述啊描述啊'
|
2015-06-25 16:01:04 +08:00
|
|
|
}, {
|
|
|
|
status: 'wait',
|
|
|
|
title: '待运行',
|
2015-06-26 10:46:21 +08:00
|
|
|
description: '这里是多信息的描述啊'
|
2015-06-25 16:01:04 +08:00
|
|
|
}].map(function(s, i) {
|
2015-06-26 10:46:21 +08:00
|
|
|
return (<Step
|
|
|
|
key={i}
|
|
|
|
status={s.status}
|
|
|
|
title={s.title}
|
|
|
|
description={s.description}></Step>
|
|
|
|
);
|
|
|
|
});
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2015-06-26 10:46:21 +08:00
|
|
|
React.render(<Steps>{steps}</Steps>, container);
|
2015-06-25 20:01:20 +08:00
|
|
|
````
|