2018-08-01 00:19:06 +08:00
|
|
|
---
|
|
|
|
order: 10
|
|
|
|
title:
|
2018-08-04 16:58:05 +08:00
|
|
|
zh-CN: 圆角/方角边缘
|
2018-08-01 00:19:06 +08:00
|
|
|
en-US: Square linecaps
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
2018-08-25 22:18:25 +08:00
|
|
|
通过设定 `strokeLinecap="square|round"` 可以调整进度条边缘的形状。
|
2018-08-01 00:19:06 +08:00
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
2018-08-25 22:18:25 +08:00
|
|
|
By setting `strokeLinecap="square"`, you can change the linecaps from round to square.
|
2018-08-01 00:19:06 +08:00
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```jsx
|
2018-08-01 00:19:06 +08:00
|
|
|
import { Progress } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
2020-05-25 16:27:02 +08:00
|
|
|
<>
|
2018-08-01 00:19:06 +08:00
|
|
|
<Progress strokeLinecap="square" percent={75} />
|
|
|
|
<Progress strokeLinecap="square" type="circle" percent={75} />
|
|
|
|
<Progress strokeLinecap="square" type="dashboard" percent={75} />
|
2020-05-25 16:27:02 +08:00
|
|
|
</>,
|
2019-05-07 14:57:32 +08:00
|
|
|
mountNode,
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|