mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 18:09:22 +08:00
38 lines
546 B
Markdown
38 lines
546 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 进度圈
|
|
en-US: Circular progress bar
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
圈形的进度。
|
|
|
|
## en-US
|
|
|
|
A circular progress bar.
|
|
|
|
```tsx
|
|
import { Progress } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Progress type="circle" percent={75} />
|
|
<Progress type="circle" percent={70} status="exception" />
|
|
<Progress type="circle" percent={100} />
|
|
</>
|
|
);
|
|
|
|
export default App;
|
|
```
|
|
|
|
<style>
|
|
.ant-progress-circle-wrap,
|
|
.ant-progress-line-wrap {
|
|
margin-right: 8px;
|
|
margin-bottom: 5px;
|
|
}
|
|
</style>
|