mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
3.1 KiB
JavaScript
2 lines
3.1 KiB
JavaScript
import{V as n}from"./index.aafdbda8.js";import{a as F}from"./use-translate.d2900b8c.js";import{T as B}from"./function-call.509e41a7.js";import{z as c,C as m,r as S,o as A,a as U,e as l,w as d,B as t,F as g}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";import"./use-refs.b3168e03.js";import"./use-touch.04ca7093.js";import"./index.b70c9b40.js";import"./mount-component.f3744995.js";import"./use-expose.c942d5f8.js";import"./index.e6e790ed.js";import"./constant.80c6de18.js";import"./interceptor.f0c85874.js";import"./use-lazy-render.f712e85e.js";import"./on-popup-reopen.138c77eb.js";import"./index.d46e53a8.js";import"./index.4e4daaac.js";const L=c({__name:"index",setup(_){const o=F({"zh-CN":{halfStar:"\u534A\u661F",disabled:"\u7981\u7528\u72B6\u6001",customIcon:"\u81EA\u5B9A\u4E49\u56FE\u6807",customStyle:"\u81EA\u5B9A\u4E49\u6837\u5F0F",customCount:"\u81EA\u5B9A\u4E49\u6570\u91CF",readonly:"\u53EA\u8BFB\u72B6\u6001",readonlyHalfStar:"\u53EA\u8BFB\u72B6\u6001\u5C0F\u6570\u663E\u793A",changeEvent:"\u76D1\u542C change \u4E8B\u4EF6",toastContent:s=>`\u5F53\u524D\u503C\uFF1A${s}`},"en-US":{halfStar:"Half Star",disabled:"Disabled",customIcon:"Custom Icon",customStyle:"Custom Style",customCount:"Custom Count",readonly:"Readonly",readonlyHalfStar:"Readonly Half Star",changeEvent:"Change Event",toastContent:s=>`current value\uFF1A${s}`}}),r=m(3),v=m(3),p=m(3),f=m(2.5),V=m(4),i=m(3),C=m(3.3),E=m(2),y=s=>B(o("toastContent",s));return(s,e)=>{const a=S("demo-block");return A(),U(g,null,[l(a,{title:t(o)("basicUsage")},{default:d(()=>[l(t(n),{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=u=>r.value=u)},null,8,["modelValue"])]),_:1},8,["title"]),l(a,{title:t(o)("customIcon")},{default:d(()=>[l(t(n),{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=u=>v.value=u),icon:"like","void-icon":"like-o"},null,8,["modelValue"])]),_:1},8,["title"]),l(a,{title:t(o)("customStyle")},{default:d(()=>[l(t(n),{modelValue:p.value,"onUpdate:modelValue":e[2]||(e[2]=u=>p.value=u),size:25,color:"#ffd21e","void-icon":"star","void-color":"#eee"},null,8,["modelValue"])]),_:1},8,["title"]),l(a,{title:t(o)("halfStar")},{default:d(()=>[l(t(n),{modelValue:f.value,"onUpdate:modelValue":e[3]||(e[3]=u=>f.value=u),"allow-half":""},null,8,["modelValue"])]),_:1},8,["title"]),l(a,{title:t(o)("customCount")},{default:d(()=>[l(t(n),{modelValue:V.value,"onUpdate:modelValue":e[4]||(e[4]=u=>V.value=u),count:6},null,8,["modelValue"])]),_:1},8,["title"]),l(a,{title:t(o)("disabled")},{default:d(()=>[l(t(n),{modelValue:i.value,"onUpdate:modelValue":e[5]||(e[5]=u=>i.value=u),disabled:""},null,8,["modelValue"])]),_:1},8,["title"]),l(a,{title:t(o)("readonly")},{default:d(()=>[l(t(n),{modelValue:i.value,"onUpdate:modelValue":e[6]||(e[6]=u=>i.value=u),readonly:""},null,8,["modelValue"])]),_:1},8,["title"]),l(a,{title:t(o)("readonlyHalfStar")},{default:d(()=>[l(t(n),{modelValue:C.value,"onUpdate:modelValue":e[7]||(e[7]=u=>C.value=u),readonly:"","allow-half":""},null,8,["modelValue"])]),_:1},8,["title"]),l(a,{title:t(o)("changeEvent")},{default:d(()=>[l(t(n),{modelValue:E.value,"onUpdate:modelValue":e[8]||(e[8]=u=>E.value=u),onChange:y},null,8,["modelValue"])]),_:1},8,["title"])],64)}}});export{L as default};
|