Element rate score establishment and use

Time:2020-10-27

The use of scoring component in El table display

When the score is greater than 0, it is displayed when it is 0, and no score is displayed

//The score of scorecolors in data is 12 3 45
Scorecolors: ['#99a9bf', '#f7ba2a', '#ff9900'], // equivalent to {2: '#ාාාාාාාාාාාාා#ා#ා##ා#ා##ා##

  

 

reference resources:

Official website:https://element.eleme.cn/#/zh-CN/component/rate#rate-ping-fen

Element rate source code:https://www.cnblogs.com/wsk1576025821/p/10979326.html