"use strict";(self["webpackChunklin_cms_vue"]=self["webpackChunklin_cms_vue"]||[]).push([[6428],{66428:function(e,l,a){a.r(l),a.d(l,{default:function(){return L}});var t=a(20641),o=a(90033);const s=e=>((0,t.Qi)("data-v-6ec70734"),e=e(),(0,t.jt)(),e),u={class:"lin-container"},n=s((()=>(0,t.Lk)("div",{class:"lin-title"},"Rate 评分",-1))),d={class:"lin-wrap-ui"},r=s((()=>(0,t.Lk)("div",{slot:"header"},[(0,t.Lk)("span",null,"基础用法")],-1))),c={class:"block"},i=s((()=>(0,t.Lk)("span",{class:"demonstration"},"默认不区分颜色",-1))),v={class:"block"},m=s((()=>(0,t.Lk)("span",{class:"demonstration"},"区分颜色",-1))),k={style:{"white-space":"pre-wrap"}},p=s((()=>(0,t.Lk)("div",{slot:"header"},[(0,t.Lk)("span",null,"辅助文字")],-1))),b={style:{"white-space":"pre-wrap"}},f=s((()=>(0,t.Lk)("div",{slot:"header"},[(0,t.Lk)("span",null,"只读")],-1))),F={style:{"white-space":"pre-wrap"}};function _(e,l,a,s,_,x){const w=(0,t.g2)("el-rate"),h=(0,t.g2)("el-row"),L=(0,t.g2)("el-collapse-item"),V=(0,t.g2)("el-collapse"),g=(0,t.g2)("el-card");return(0,t.uX)(),(0,t.CE)("div",u,[n,(0,t.Lk)("div",d,[(0,t.bF)(g,{style:{"margin-bottom":"50px"}},{default:(0,t.k6)((()=>[r,(0,t.bF)(h,null,{default:(0,t.k6)((()=>[(0,t.Lk)("div",c,[i,(0,t.bF)(w,{modelValue:_.value1,"onUpdate:modelValue":l[0]||(l[0]=e=>_.value1=e),colors:_.colors1,max:6},null,8,["modelValue","colors"])]),(0,t.Lk)("div",v,[m,(0,t.bF)(w,{modelValue:_.value2,"onUpdate:modelValue":l[1]||(l[1]=e=>_.value2=e),colors:_.colors2},null,8,["modelValue","colors"])])])),_:1}),(0,t.bF)(V,null,{default:(0,t.k6)((()=>[(0,t.bF)(L,{title:"查看代码",name:"2"},{default:(0,t.k6)((()=>[(0,t.Lk)("div",k,(0,o.v_)(_.base),1)])),_:1})])),_:1})])),_:1}),(0,t.bF)(g,{style:{"margin-bottom":"50px"}},{default:(0,t.k6)((()=>[p,(0,t.bF)(h,null,{default:(0,t.k6)((()=>[(0,t.bF)(w,{modelValue:_.value3,"onUpdate:modelValue":l[2]||(l[2]=e=>_.value3=e),"show-text":"",texts:_.texts,colors:_.colors3},null,8,["modelValue","texts","colors"])])),_:1}),(0,t.bF)(V,null,{default:(0,t.k6)((()=>[(0,t.bF)(L,{title:"查看代码",name:"2"},{default:(0,t.k6)((()=>[(0,t.Lk)("div",b,(0,o.v_)(_.withText),1)])),_:1})])),_:1})])),_:1}),(0,t.bF)(g,{style:{"margin-bottom":"50px"}},{default:(0,t.k6)((()=>[f,(0,t.bF)(h,null,{default:(0,t.k6)((()=>[(0,t.bF)(w,{modelValue:_.value4,"onUpdate:modelValue":l[3]||(l[3]=e=>_.value4=e),disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}分"},null,8,["modelValue"])])),_:1}),(0,t.bF)(V,null,{default:(0,t.k6)((()=>[(0,t.bF)(L,{title:"查看代码",name:"2"},{default:(0,t.k6)((()=>[(0,t.Lk)("div",F,(0,o.v_)(_.disabled),1)])),_:1})])),_:1})])),_:1})])])}var x={data(){return{value1:null,value2:null,value3:null,value4:3.7,colors1:{6:"#FFBE4D"},colors2:{2:"#8C98AE",4:{value:"#FFDD55",excluded:!0},5:"#FFBE4D"},colors3:{5:"#FFDD55"},texts:["极差","失望","一般","满意","惊喜"],iconClasses:{2:"icon-rate-face-1",4:{value:"icon-rate-face-2",excluded:!0},5:"icon-rate-face-3"},base:' \n <el-rate v-model="value1" :colors="colors1" :max="6"></el-rate>\n <el-rate v-model="value2" :colors="colors2"></el-rate>',withText:' \n <el-rate v-model="value3" show-text :texts="texts" :colors="colors3">\n </el-rate>',disabled:' \n <el-rate\n v-model="value4"\n disabled\n show-score\n text-color="#ff9900"\n score-template="{value}分">\n </el-rate>'}},components:{}},w=a(66262);const h=(0,w.A)(x,[["render",_],["__scopeId","data-v-6ec70734"]]);var L=h}}]);
|