進度條圖標顯示百分比進度,100%顯示“100%”,而非圖標 “✓”
如下:
改為:
<Progress trailColor={index===0?'rgba(255,134,15,0.2)':(index===1?'rgba(247,209,10,0.2)':'rgba(57,255,255,0.2)')} strokeColor={index === 0 ? '#FF860F' : (index === 1 ? '#F7D10A' : '#39FFFF')} type="circle" percent={parseInt(item.percent)} format={(percent) => percent === 100 ? '100%' : `${percent}`} width={57} />