2020
10-08
10-08
Element Rate 评分的使用方法
组件—评分基础用法<divclass="block"><spanclass="demonstration">默认不区分颜色</span><el-ratev-model="value1"></el-rate></div><divclass="block"><spanclass="demonstration">区分颜色</span><el-ratev-model="value2":colors="colors"></el-rate></div><script>exportdefault{data(){return{value1:null,value2:null,colors:['#99A9BF','#F7BA2A','#FF9900']//等同于{2:'#9...
继续阅读 >
本文实例为大家分享了js实现评分功能的具体代码,供大家参考,具体内容如下实现的效果如下:具体代码如下:html部分:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width,initial-scale=1.0"><metahttp-equiv="X-UA-Compatible"content="ie=edge"><linkrel="stylesheet"href="./index.css"><title>评分</title></head><body><divid="starRating"><pc...