You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
559 B

---
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';
ReactDOM.render(
<div>
<Progress strokeLinecap="square" percent={75} />
<Progress strokeLinecap="square" type="circle" percent={75} />
<Progress strokeLinecap="square" type="dashboard" percent={75} />
</div>,
mountNode);
````