mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 03:54:28 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
27 lines
545 B
Markdown
27 lines
545 B
Markdown
---
|
|
order: 10
|
|
title:
|
|
zh-CN: 圆角/方角边缘
|
|
en-US: Square linecaps
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
通过设定 `strokeLinecap="square|round"` 可以调整进度条边缘的形状。
|
|
|
|
## en-US
|
|
|
|
By setting `strokeLinecap="square"`, you can change the linecaps from round to square.
|
|
|
|
```jsx
|
|
import { Progress } from 'antd';
|
|
|
|
export default () => (
|
|
<>
|
|
<Progress strokeLinecap="square" percent={75} />
|
|
<Progress strokeLinecap="square" type="circle" percent={75} />
|
|
<Progress strokeLinecap="square" type="dashboard" percent={75} />
|
|
</>
|
|
);
|
|
```
|