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

42 lines
658 B
Markdown
Raw Normal View History

2015-06-25 16:01:04 +08:00
# Steps 迷你版步进条
- order: 1
2015-06-25 18:12:42 +08:00
迷你版的步进条,通过设置`<Steps size='small'>`启用.
---
2015-06-25 16:01:04 +08:00
````jsx
2015-06-25 18:12:42 +08:00
'use strict';
var Steps = antd.Steps;
var container = document.getElementById('components-steps-demo-small-size');
var steps = [{
status: 'finish',
title: '已完成'
}, {
status: 'process',
title: '进行中'
}, {
status: 'wait',
title: '待运行'
}, {
status: 'wait',
title: '待运行'
}].map(function(s, i) {
return (<Steps.Step
key={i}
status={s.status}
title={s.title}
></Steps.Step>
);
});
2015-06-25 16:01:04 +08:00
2015-06-25 18:12:42 +08:00
React.render(
<Steps size="small">
{steps}
</Steps>, container);
2015-06-25 16:01:04 +08:00
````