import{a as u,e as s,o as i,b as f,G as m,F as t,l as e,x as b,D as V,g as x,X as w}from"./@vue.e84e1286.js";import{p as v}from"./preview.2bfe2f00.js";import"./bus.f1893518.js";import"./mitt.550594b0.js";/* empty css */import"./index.c8cfbd6c.js";import"./vue-router.54876e93.js";const N={__name:"demo1",setup(h){const l=u(0),a=d=>{console.log(d)};return(d,n)=>{const o=s("m-rate");return i(),f(o,{modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=r=>l.value=r),onOnChange:a},null,8,["modelValue"])}}},g={__name:"demo2",setup(h){const l=u(2.5);return(a,d)=>{const n=s("m-rate");return i(),f(n,{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=o=>l.value=o),"allow-half":""},null,8,["modelValue"])}}},y={__name:"demo3",setup(h){const l=u(2),a=u(2),d=["\u6781\u5DEE","\u5931\u671B","\u4E00\u822C","\u6EE1\u610F","\u60CA\u559C"];return(n,o)=>{const r=s("m-rate"),c=s("m-col"),p=s("m-row");return i(),f(p,null,{default:m(()=>[t(c,null,{default:m(()=>[t(r,{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=_=>l.value=_),"show-text":""},null,8,["modelValue"])]),_:1}),t(c,{style:{"margin-top":"20px"}},{default:m(()=>[t(r,{modelValue:a.value,"onUpdate:modelValue":o[1]||(o[1]=_=>a.value=_),"show-text":""},{default:m(()=>[e("span",null,b(d[a.value-1]),1)]),_:1},8,["modelValue"])]),_:1})]),_:1})}}},U={__name:"demo4",setup(h){const l=u(2);return(a,d)=>{const n=s("m-rate");return i(),f(n,{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=o=>l.value=o),disabled:""},null,8,["modelValue"])}}},$=V(" clearable: true "),k=V(" clearable: false "),B={__name:"demo5",setup(h){const l=u(2),a=u(2);return(d,n)=>{const o=s("m-rate"),r=s("m-col"),c=s("m-row");return i(),f(c,null,{default:m(()=>[t(r,null,{default:m(()=>[t(o,{modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=p=>l.value=p),clearable:""},null,8,["modelValue"]),$]),_:1}),t(r,{style:{"margin-top":"20px"}},{default:m(()=>[t(o,{modelValue:a.value,"onUpdate:modelValue":n[1]||(n[1]=p=>a.value=p)},null,8,["modelValue"]),k]),_:1})]),_:1})}}},C={__name:"demo6",setup(h){const l=u(2),a=u(2),d=u(2);return(n,o)=>{const r=s("m-rate"),c=s("m-col"),p=s("m-row");return i(),f(p,null,{default:m(()=>[t(c,null,{default:m(()=>[t(r,{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=_=>l.value=_),character:"A"},null,8,["modelValue"])]),_:1}),t(c,{style:{"margin-top":"20px"}},{default:m(()=>[t(r,{modelValue:a.value,"onUpdate:modelValue":o[1]||(o[1]=_=>a.value=_),character:"\u597D","allow-half":""},null,8,["modelValue"])]),_:1}),t(c,{style:{"margin-top":"20px"}},{default:m(()=>[t(r,{modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=_=>d.value=_),icon:"smile-filling"},null,8,["modelValue"])]),_:1})]),_:1})}}},A={class:"markdown-body"},D=e("h1",null,"Rate \u8BC4\u5206",-1),E=e("h4",null,"\u8BC4\u5206\u7EC4\u4EF6\uFF0C\u5BF9\u8BC4\u4EF7\u8FDB\u884C\u5C55\u793A\u3002",-1),S=e("br",null,null,-1),F=e("h2",null,"\u57FA\u7840\u7528\u6CD5",-1),G=e("h4",null,"\u8BC4\u5206\u57FA\u7840\u7528\u6CD5\u3002",-1),H={class:"source"},O=e("h2",null,"\u534A\u661F",-1),R=e("h4",null,"\u8BBE\u7F6E\u5C5E\u6027 allow-half \u53EF\u4EE5\u9009\u4E2D\u534A\u661F\u3002",-1),T={class:"source"},X=e("h2",null,"\u663E\u793A\u63D0\u793A",-1),j=e("h4",null,"\u8BBE\u7F6E\u5C5E\u6027 show-text \u53EF\u4EE5\u663E\u793A\u63D0\u793A\u6587\u5B57\u3002\u63D0\u793A\u5185\u5BB9\u4E5F\u53EF\u4EE5\u901A\u8FC7 slot \u81EA\u5B9A\u4E49\u3002",-1),q={class:"source"},z=e("h2",null,"\u53EA\u8BFB",-1),I=e("h4",null,"\u8BBE\u7F6E\u5C5E\u6027 disabled \u5F00\u542F\u53EA\u8BFB\u6A21\u5F0F\uFF0C\u65E0\u6CD5\u4EA4\u4E92\u3002",-1),J={class:"source"},K=e("h2",null,"\u6E05\u9664",-1),L=e("h4",null,"\u652F\u6301\u5141\u8BB8\u6216\u8005\u7981\u7528\u6E05\u9664\u3002\u8BBE\u7F6E clearable \u5C5E\u6027\uFF0C\u53EF\u4EE5\u5141\u8BB8\u6E05\u9664\u3002",-1),M={class:"source"},P=e("h2",null,"\u81EA\u5B9A\u4E49\u5B57\u7B26\u6216\u56FE\u6807",-1),Q=e("h4",null,"\u8BBE\u7F6E character \u5C5E\u6027\uFF0C\u53EF\u4EE5\u81EA\u5B9A\u4E49\u5B57\u7B26\u3002\u8BBE\u7F6E icon \u5C5E\u6027\uFF0C\u53EF\u4EE5\u81EA\u5B9A\u4E49\u56FE\u6807\u3002",-1),W={class:"source"},Y=w("

Attributes

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
v-model\u7ED1\u5B9A\u503Cnumber\u20140
countstar \u603B\u6570number\u20145
allow-half\u662F\u5426\u5141\u8BB8\u534A\u9009boolean\u2014false
disabled\u662F\u5426\u53EA\u8BFB\uFF0C\u65E0\u6CD5\u8FDB\u884C\u4EA4\u4E92boolean\u2014false
show-text\u662F\u5426\u663E\u793A\u63D0\u793A\u6587\u5B57boolean\u2014false
clearable\u662F\u5426\u53EF\u4EE5\u53D6\u6D88\u9009\u62E9boolean\u2014false
character\u81EA\u5B9A\u4E49\u5B57\u7B26string\u2014\u2014
icon\u4F7F\u7528\u56FE\u6807string\u2014\u2014

Events

\u4E8B\u4EF6\u540D\u8BF4\u660E\u8FD4\u56DE\u503C
on-change\u8BC4\u5206\u6539\u53D8\u65F6\u89E6\u53D1value

",7),nt={__name:"doc",setup(h,{expose:l}){return l({frontmatter:{}}),(d,n)=>(i(),x("div",A,[D,E,S,F,G,e("div",H,[t(N)]),t(v,{compName:"rate",demoName:"demo1"}),O,R,e("div",T,[t(g)]),t(v,{compName:"rate",demoName:"demo2"}),X,j,e("div",q,[t(y)]),t(v,{compName:"rate",demoName:"demo3"}),z,I,e("div",J,[t(U)]),t(v,{compName:"rate",demoName:"demo4"}),K,L,e("div",M,[t(B)]),t(v,{compName:"rate",demoName:"demo5"}),P,Q,e("div",W,[t(C)]),t(v,{compName:"rate",demoName:"demo6"}),Y]))}};export{nt as default};