ant-design/components/steps/demo/error.md

28 lines
671 B
Markdown
Raw Normal View History

2016-04-06 17:07:22 +08:00
---
order: 6
2016-04-06 17:50:04 +08:00
title: 步骤运行错误
2016-04-06 17:07:22 +08:00
---
使用 Steps 的 `status` 属性来指定当前步骤的状态。
````jsx
import { Steps } from 'antd';
const Step = Steps.Step;
const steps = [{
title: '已完成',
2016-05-11 09:32:33 +08:00
description: '这里是多信息的描述啊',
2016-04-06 17:07:22 +08:00
}, {
title: '错误示例',
2016-05-11 09:32:33 +08:00
description: '这里是多信息的耶哦耶哦哦耶哦耶',
2016-04-06 17:07:22 +08:00
}, {
title: '又一个待运行',
2016-05-11 09:32:33 +08:00
description: '描述啊描述啊',
2016-04-06 17:07:22 +08:00
}, {
title: '待运行',
2016-05-11 09:32:33 +08:00
description: '这里是多信息的描述啊',
2016-04-06 17:07:22 +08:00
}].map((s, i) => <Step key={i} title={s.title} description={s.description} />);
ReactDOM.render(<Steps current={1} status="error">{steps}</Steps>, mountNode);
````