2015-06-25 20:01:20 +08:00
|
|
|
# 迷你版
|
2015-06-25 16:01:04 +08:00
|
|
|
|
|
|
|
- order: 1
|
|
|
|
|
2015-09-01 17:43:08 +08:00
|
|
|
迷你版的步骤条,通过设置 `<Steps size="small">` 启用.
|
2015-06-25 18:12:42 +08:00
|
|
|
|
|
|
|
---
|
2015-06-25 16:01:04 +08:00
|
|
|
|
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Steps } from 'antd';
|
|
|
|
const Step = Steps.Step;
|
|
|
|
const container = document.getElementById('components-steps-demo-small-size');
|
2015-06-25 18:12:42 +08:00
|
|
|
|
2015-10-28 20:55:49 +08:00
|
|
|
const steps = [{
|
2015-06-25 18:12:42 +08:00
|
|
|
status: 'finish',
|
|
|
|
title: '已完成'
|
|
|
|
}, {
|
|
|
|
status: 'process',
|
|
|
|
title: '进行中'
|
|
|
|
}, {
|
|
|
|
status: 'wait',
|
|
|
|
title: '待运行'
|
|
|
|
}, {
|
|
|
|
status: 'wait',
|
|
|
|
title: '待运行'
|
|
|
|
}].map(function(s, i) {
|
2015-09-16 16:28:57 +08:00
|
|
|
return (
|
|
|
|
<Step key={i} title={s.title} description={s.description} />
|
|
|
|
);
|
2015-06-25 20:01:20 +08:00
|
|
|
});
|
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(<Steps size="small" current={1}>{steps}</Steps>, container);
|
2015-06-25 20:01:20 +08:00
|
|
|
````
|