我有一个用react-circular-progress bar创建的React组件,我想将一条线分成两部分,以便以后使用不同的样式。同样,它们必须位于不同的行中。但是我不知道如何拆分它们或添加样式。
我已经尽力想尽一切办法: text={`${value}${unit}`}
function circleProgress({ value, unit, percents, color, key }) {
return (
<CircularProgressbar
key={key}
percentage={percents}
text={`${value}${unit}`}
initialAnimation= {true}
circleRatio={0.7}
styles={{
root: {
margin: '0.5em'
},
}}
/>
)
千巷猫影
哔哔one
相关分类