-
-
Notifications
You must be signed in to change notification settings - Fork 53.5k
Closed
Labels
🐛 BugAnt Design Team had proved that this is a bug.Ant Design Team had proved that this is a bug.👷🏻♂️ Someone working on it
Description
Reproduction link
https://ant.design/components/progress-cn/
Steps to reproduce
<Progress
type="circle"
strokeColor={{
'0%': '#EDF1A1',
'100%': '#4DEDF7',
}}
trailColor="#4E85E1"
strokeLinecap="square"
strokeWidth={15}
format={p => p}
percent={98}
/>
What is expected?
显示的percent数字为98,进度条同样沾满98%
What is actually happening?
显示的percent数字为98,进度条却是沾满的100%的状态
Environment | Info |
---|---|
antd | 4.19.5 |
React | 16.13.1 |
System | windows10 |
Browser | 87.0.4280.141(正式版本) (64 位) |
当type="line"的时候是没有进度条显示不精确的问题的,当type="circle"时,进度条是否精准与strokeWidth属性相关,percent越接近100越不精准
Metadata
Metadata
Assignees
Labels
🐛 BugAnt Design Team had proved that this is a bug.Ant Design Team had proved that this is a bug.👷🏻♂️ Someone working on it