2019-11-22 10:46:33 +08:00
|
|
|
---
|
|
|
|
order: 11
|
|
|
|
title:
|
|
|
|
zh-CN: 步骤进度条
|
|
|
|
en-US: Progress bar with steps
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
带步骤的进度条。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
A progress bar with steps.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import React from 'react';
|
2019-11-22 10:46:33 +08:00
|
|
|
import { Progress } from 'antd';
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-05-25 16:27:02 +08:00
|
|
|
<>
|
2020-05-29 13:43:53 +08:00
|
|
|
<Progress percent={50} steps={3} />
|
2019-11-22 10:46:33 +08:00
|
|
|
<br />
|
2020-05-29 13:43:53 +08:00
|
|
|
<Progress percent={30} steps={5} />
|
2019-11-22 10:46:33 +08:00
|
|
|
<br />
|
2020-05-29 13:43:53 +08:00
|
|
|
<Progress percent={100} steps={5} size="small" strokeColor="#52c41a" />
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2019-11-22 10:46:33 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-11-22 10:46:33 +08:00
|
|
|
```
|