最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Element Rate 評(píng)分的使用方法

 更新時(shí)間:2020年07月27日 11:23:31   作者:ForeverJPB.  
這篇文章主要介紹了Element Rate 評(píng)分的使用方法,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧

組件—評(píng)分

基礎(chǔ)用法

<div class="block">
 <span class="demonstration">默認(rèn)不區(qū)分顏色</span>
 <el-rate v-model="value1"></el-rate>
</div>
<div class="block">
 <span class="demonstration">區(qū)分顏色</span>
 <el-rate
  v-model="value2"
  :colors="colors">
 </el-rate>
</div>

<script>
 export default {
  data() {
   return {
    value1: null,
    value2: null,
    colors: ['#99A9BF', '#F7BA2A', '#FF9900'] // 等同于 { 2: '#99A9BF', 4: { value: '#F7BA2A', excluded: true }, 5: '#FF9900' }
   }
  }
 }
</script>
————————————————
版權(quán)聲明:本文為CSDN博主「ForeverJPB.」的原創(chuàng)文章,遵循CC 4.0 BY-SA版權(quán)協(xié)議,轉(zhuǎn)載請(qǐng)附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/GU_AO_SHI_TAI_DU/article/details/94563654

輔助文字

<div class="block">
 <span class="demonstration">默認(rèn)不區(qū)分顏色</span>
 <el-rate v-model="value1"></el-rate>
</div>
<div class="block">
 <span class="demonstration">區(qū)分顏色</span>
 <el-rate
  v-model="value2"
  :colors="colors">
 </el-rate>
</div>

<script>
 export default {
  data() {
   return {
    value1: null,
    value2: null,
    colors: ['#99A9BF', '#F7BA2A', '#FF9900'] // 等同于 { 2: '#99A9BF', 4: { value: '#F7BA2A', excluded: true }, 5: '#FF9900' }
   }
  }
 }
</script>

其它 icon

<el-rate
 v-model="value"
 :icon-classes="iconClasses"
 void-icon-class="icon-rate-face-off"
 :colors="['#99A9BF', '#F7BA2A', '#FF9900']">
</el-rate>

<script>
 export default {
  data() {
   return {
    value: null,
    iconClasses: ['icon-rate-face-1', 'icon-rate-face-2', 'icon-rate-face-3'] // 等同于 { 2: 'icon-rate-face-1', 4: { value: 'icon-rate-face-2', excluded: true }, 5: 'icon-rate-face-3' }
   }
  }
 }
</script>

只讀

<el-rate
 v-model="value"
 disabled
 show-score
 text-color="#ff9900"
 score-template="{value}">
</el-rate>

<script>
 export default {
  data() {
   return {
    value: 3.7
   }
  }
 }
</script>

Attributes


Events

到此這篇關(guān)于Element Rate 評(píng)分的使用方法的文章就介紹到這了,更多相關(guān)Element Rate 評(píng)分內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論

韶山市| 衡南县| 会泽县| 丹阳市| 卫辉市| 普格县| 璧山县| 伊宁县| 庆城县| 三江| 七台河市| 江门市| 水城县| 合阳县| 化隆| 延川县| 龙门县| 东兴市| 平山县| 墨竹工卡县| 马公市| 泾阳县| 微山县| 出国| 那坡县| 孙吴县| 普格县| 南京市| 白水县| 静安区| 琼海市| 鄂温| 全南县| 西藏| 靖安县| 乾安县| 阳新县| 陇南市| 开鲁县| 兰考县| 琼结县|