2018-01-19 15:22:37 +08:00
|
|
|
---
|
|
|
|
order: 9
|
|
|
|
title:
|
|
|
|
zh-CN: 分段进度条
|
|
|
|
en-US: Progress bar with success segment
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
2020-03-22 17:59:43 +08:00
|
|
|
标准的进度条。`type="circle|dashboard"` 时不支持分段颜色。
|
2018-01-19 15:22:37 +08:00
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
2020-03-22 17:59:43 +08:00
|
|
|
A standard progress bar. Doesn't support trail color when `type="circle|dashboard"`.
|
2018-01-19 15:22:37 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import React from 'react';
|
2018-01-19 15:22:37 +08:00
|
|
|
import { Tooltip, Progress } from 'antd';
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-05-25 16:27:02 +08:00
|
|
|
<>
|
2019-01-18 15:19:36 +08:00
|
|
|
<Tooltip title="3 done / 3 in progress / 4 to do">
|
2020-07-01 23:32:22 +08:00
|
|
|
<Progress percent={60} success={{ percent: 30 }} />
|
2019-01-18 15:19:36 +08:00
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
<Tooltip title="3 done / 3 in progress / 4 to do">
|
2020-07-01 23:32:22 +08:00
|
|
|
<Progress percent={60} success={{ percent: 30 }} type="circle" />
|
2019-01-18 15:19:36 +08:00
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
<Tooltip title="3 done / 3 in progress / 4 to do">
|
2020-07-01 23:32:22 +08:00
|
|
|
<Progress percent={60} success={{ percent: 30 }} type="dashboard" />
|
2019-01-18 15:19:36 +08:00
|
|
|
</Tooltip>
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
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
|
|
|
```
|