mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 19:18:40 +08:00
29 lines
519 B
Markdown
29 lines
519 B
Markdown
# 迷你版
|
|
|
|
- order: 1
|
|
|
|
迷你版的步骤条,通过设置 `<Steps size="small">` 启用.
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Steps } from 'antd';
|
|
const Step = Steps.Step;
|
|
|
|
const steps = [{
|
|
status: 'finish',
|
|
title: '已完成'
|
|
}, {
|
|
status: 'process',
|
|
title: '进行中'
|
|
}, {
|
|
status: 'wait',
|
|
title: '待运行'
|
|
}, {
|
|
status: 'wait',
|
|
title: '待运行'
|
|
}].map((s, i) => <Step key={i} title={s.title} description={s.description} />);
|
|
|
|
ReactDOM.render(<Steps size="small" current={1}>{steps}</Steps>, mountNode);
|
|
````
|