mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
6ca32a6665
* refactor: Progress type="circle" for some issues close #17706 close #35009 close #35352 * test: update progress snapshot * docs: update linecap.md * Update components/progress/demo/linecap.md * test: update progress snapshot * fix: rc-progress@~3.3.1 * fix: rc-progress@~3.3.2
27 lines
739 B
Markdown
27 lines
739 B
Markdown
---
|
|
order: 10
|
|
title:
|
|
zh-CN: 边缘形状
|
|
en-US: Stroke Linecap
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
通过设定 `strokeLinecap="butt"` 可以调整进度条边缘的形状为方形,详见 [stroke-linecap](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap)。
|
|
|
|
## en-US
|
|
|
|
By setting `strokeLinecap="butt"`, you can change the linecaps from `round` to `butt`, see [stroke-linecap](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap) for more information.
|
|
|
|
```jsx
|
|
import { Progress } from 'antd';
|
|
|
|
export default () => (
|
|
<>
|
|
<Progress strokeLinecap="butt" percent={75} />
|
|
<Progress strokeLinecap="butt" type="circle" percent={75} />
|
|
<Progress strokeLinecap="butt" type="dashboard" percent={75} />
|
|
</>
|
|
);
|
|
```
|