2018-08-01 00:19:06 +08:00
---
order: 10
title:
2022-05-08 23:57:17 +08:00
zh-CN: 边缘形状
en-US: Stroke Linecap
2018-08-01 00:19:06 +08:00
---
## zh-CN
2022-05-08 23:57:17 +08:00
通过设定 `strokeLinecap="butt"` 可以调整进度条边缘的形状为方形,详见 [stroke-linecap ](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap )。
2018-08-01 00:19:06 +08:00
## en-US
2022-05-08 23:57:17 +08:00
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.
2018-08-01 00:19:06 +08:00
2022-05-19 09:46:26 +08:00
```tsx
2018-08-01 00:19:06 +08:00
import { Progress } from 'antd';
2022-05-21 22:14:15 +08:00
import React from 'react';
2018-08-01 00:19:06 +08:00
2022-05-19 09:46:26 +08:00
const App: React.FC = () => (
2020-05-25 16:27:02 +08:00
< >
2022-05-08 23:57:17 +08:00
< Progress strokeLinecap = "butt" percent = {75} / >
< Progress strokeLinecap = "butt" type = "circle" percent = {75} / >
2022-10-31 10:23:26 +08:00
< Progress strokeLinecap = "butt" type = "dashboard" percent = {75} style = {{ marginLeft: 8 } } / >
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
```