ant-design/components/progress/demo/linecap.md
2019-05-07 14:57:32 +08:00

559 B

order title
10
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.

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,
);