评分组件

基础用法

评分被分为三个等级,可以利用颜色对分数及情感倾向进行分级(默认情况下不区分颜色)。三个等级所对应的颜色用过colors属性设置,而它们对应的两个阈值则通过 low-threshold 和 high-threshold 设定。

 1 <div class="block">
 2   <span class="demonstration">默认不区分颜色</span>
 3   <el-rate v-model="value1"></el-rate>
 4 </div>
 5 <div class="block">
 6   <span class="demonstration">区分颜色</span>
 7   <el-rate
 8     v-model="value2"
 9     :colors="['#99A9BF', '#F7BA2A', '#FF9900']">
10   </el-rate>
11 </div>
12 
13 <script>
14   export default {
15     data() {
16       return {
17         value1: null,
18         value2: null
19       }
20     }
21   }
22 </script>
View Code

相关文章:

  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2021-04-25
  • 2021-07-31
  • 2021-07-18
  • 2021-11-08
  • 2021-11-18
猜你喜欢
  • 2021-06-07
  • 2021-08-12
  • 2021-06-22
  • 2021-12-20
  • 2021-12-14
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案