2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 0
|
2016-07-21 10:07:30 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 基本用法
|
|
|
|
en-US: Basic
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2016-07-21 10:07:30 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-06-26 10:46:21 +08:00
|
|
|
简单的步骤条。
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2016-07-21 10:07:30 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
The most basic step bar.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import React from 'react';
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Steps } from 'antd';
|
2018-06-27 15:55:04 +08:00
|
|
|
|
2019-05-27 21:32:45 +08:00
|
|
|
const { Step } = Steps;
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2016-07-21 14:20:49 +08:00
|
|
|
<Steps current={1}>
|
2016-09-30 09:48:54 +08:00
|
|
|
<Step title="Finished" description="This is a description." />
|
2019-08-14 11:18:36 +08:00
|
|
|
<Step title="In Progress" subTitle="Left 00:00:08" description="This is a description." />
|
2016-09-30 09:48:54 +08:00
|
|
|
<Step title="Waiting" description="This is a description." />
|
2022-04-03 23:27:45 +08:00
|
|
|
</Steps>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|