ant-design/components/progress/demo/linecap.md
偏右 a5efa7a81a
test: increase coverage of Progress/Comment/Avatar/Dropdown (#24439)
* test: increase test case of Progress and Comment

* test: add test case for Avatar

* test: add test case for Dropdown

* fix snapshot

* fix snapshot

* remove console.log

* fix lint

* add avatar
2020-05-25 16:27:02 +08:00

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