我想给‘黄色’的颜色,直到50%,50%后,它将显示‘绿色’。
它不像strokeColor特性。我想看黄色还是绿色。不是在一起。
它是否可能处理它(首选没有css)?
import { Progress } from 'antd';<Progress
percent={this.state.progress}
/>发布于 2020-05-12 11:28:12
使用strokeColor道具:
<Progress
percent={this.state.progress}
strokeColor={this.state.progress < 50 ? "yellow" : "green"}
/>在那里查看:https://codesandbox.io/s/dynamic-ant-design-demo-icli2
发布于 2021-12-10 07:53:57
使用strokeColor
<进步type=“圆圈”percent={progressbar} strokeColor={'green'} />
https://stackoverflow.com/questions/61750257
复制相似问题