2020-07-27 21:40:36 +08:00
|
|
|
---
|
|
|
|
order: 13
|
|
|
|
title:
|
|
|
|
zh-CN: 带有进度的步骤
|
|
|
|
en-US: Steps with progress
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
带有进度的步骤。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Steps with progress.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2020-07-27 21:40:36 +08:00
|
|
|
import { Steps } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2020-07-27 21:40:36 +08:00
|
|
|
|
|
|
|
const { Step } = Steps;
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-07-27 21:40:36 +08:00
|
|
|
<Steps current={1} percent={60}>
|
|
|
|
<Step title="Finished" description="This is a description." />
|
|
|
|
<Step title="In Progress" subTitle="Left 00:00:08" description="This is a description." />
|
|
|
|
<Step title="Waiting" description="This is a description." />
|
2022-04-03 23:27:45 +08:00
|
|
|
</Steps>
|
2020-07-27 21:40:36 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2020-07-27 21:40:36 +08:00
|
|
|
```
|