antd Progress進度條百分百時顯示數值100%


進度條圖標顯示百分比進度,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} 
/>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM