2015-07-08 15:53:51 +08:00
|
|
|
# 带ICON图标的步骤条
|
|
|
|
|
|
|
|
- order: 2
|
|
|
|
|
2015-09-01 17:43:08 +08:00
|
|
|
通过设置 `Steps.Step` 的 `icon` 属性,可以启用自定义图标。
|
2015-07-08 15:53:51 +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-icon');
|
2015-07-08 15:53:51 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(<Steps>
|
2015-09-16 16:28:57 +08:00
|
|
|
<Step status='finish' title='步骤1' icon='cloud' />
|
|
|
|
<Step status='process' title='步骤2' icon='apple' />
|
|
|
|
<Step status='wait' title='步骤3' icon='github' />
|
2015-07-08 15:53:51 +08:00
|
|
|
</Steps>, container);
|
|
|
|
````
|