2016-04-06 17:07:22 +08:00
|
|
|
---
|
|
|
|
order: 6
|
2016-07-21 10:07:30 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 步骤运行错误
|
|
|
|
en-US: Error status
|
2016-04-06 17:07:22 +08:00
|
|
|
---
|
|
|
|
|
2016-07-21 10:07:30 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-04-06 17:07:22 +08:00
|
|
|
使用 Steps 的 `status` 属性来指定当前步骤的状态。
|
|
|
|
|
2016-07-21 10:07:30 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
By using `status` of `Steps`, you can specify the state for current step.
|
|
|
|
|
2016-04-06 17:07:22 +08:00
|
|
|
````jsx
|
|
|
|
import { Steps } from 'antd';
|
|
|
|
const Step = Steps.Step;
|
|
|
|
|
2016-07-21 14:20:49 +08:00
|
|
|
ReactDOM.render(
|
|
|
|
<Steps current={1} status="error">
|
|
|
|
<Step title="已完成" description="这里是多信息的描述" />
|
|
|
|
<Step title="进行中" description="这里是多信息的描述" />
|
|
|
|
<Step title="待运行" description="这里是多信息的描述" />
|
|
|
|
<Step title="待运行" description="这里是多信息的描述" />
|
|
|
|
</Steps>
|
|
|
|
, mountNode);
|
2016-04-06 17:07:22 +08:00
|
|
|
````
|