mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
29 lines
577 B
Markdown
29 lines
577 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 步骤运行错误
|
|
en-US: Error status
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
使用 Steps 的 `status` 属性来指定当前步骤的状态。
|
|
|
|
## en-US
|
|
|
|
By using `status` of `Steps`, you can specify the state for current step.
|
|
|
|
```jsx
|
|
import { Steps } from 'antd';
|
|
|
|
const { Step } = Steps;
|
|
|
|
export default () => (
|
|
<Steps current={1} status="error">
|
|
<Step title="Finished" description="This is a description" />
|
|
<Step title="In Process" description="This is a description" />
|
|
<Step title="Waiting" description="This is a description" />
|
|
</Steps>
|
|
);
|
|
```
|