2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 2
|
2016-07-21 10:07:30 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 带图标的步骤条
|
|
|
|
en-US: With icon
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-07-08 15:53:51 +08:00
|
|
|
|
2016-07-21 10:07:30 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-09-01 17:43:08 +08:00
|
|
|
通过设置 `Steps.Step` 的 `icon` 属性,可以启用自定义图标。
|
2015-07-08 15:53:51 +08:00
|
|
|
|
2016-07-21 10:07:30 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
You can use your own custom icons by setting the property `icon` for `Steps.Step`.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2016-09-29 16:12:43 +08:00
|
|
|
import { Steps, Icon } from 'antd';
|
2015-10-28 20:55:49 +08:00
|
|
|
const Step = Steps.Step;
|
2015-07-08 15:53:51 +08:00
|
|
|
|
2016-07-21 14:20:49 +08:00
|
|
|
ReactDOM.render(
|
|
|
|
<Steps>
|
2016-12-04 15:50:54 +08:00
|
|
|
<Step status="finish" title="Login" icon={<Icon type="user" />} />
|
|
|
|
<Step status="finish" title="Verification" icon={<Icon type="solution" />} />
|
|
|
|
<Step status="process" title="Pay" icon={<Icon type="credit-card" />} />
|
2016-11-08 21:51:28 +08:00
|
|
|
<Step status="wait" title="Done" icon={<Icon type="smile-o" />} />
|
2016-07-21 14:20:49 +08:00
|
|
|
</Steps>
|
|
|
|
, mountNode);
|
2015-07-08 15:53:51 +08:00
|
|
|
````
|