We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
先显示状态再变跟进度,如果变化区间较大时感觉到唐突,如下图:
The text was updated successfully, but these errors were encountered:
现在还没有相对完善的破解方式,see:facebook/react#2187
Sorry, something went wrong.
看图片表现是先设置了 status="success" 再 设置了 percent={100}。
status="success"
percent={100}
业务上需要保持同步设置,一般只需设置 percent 就好。
percent
先关了。
https://github.com/ant-design/ant-design/blob/develop-0.12.0/components/progress/index.jsx#L124
其实 Progress.Circle 会自行更新状态的。所以出现这种现象是原因是因为,进度已经 100% 了,所以 Progress.Circle 自行设置状态为 success,同时设置 stroke-dashoffset,但因为样式的 transition 设置了 delay,所以状态在动画执行完之前就已经切换了。
Progress.Circle
stroke-dashoffset
transition
afc163
No branches or pull requests
先显示状态再变跟进度,如果变化区间较大时感觉到唐突,如下图:
The text was updated successfully, but these errors were encountered: