vant/v3/assets/index.8e7fc01a.js
2024-04-20 08:49:23 +00:00

2 lines
2.6 KiB
JavaScript

import{V as s}from"./index.ae023657.js";import{V as m}from"./index.da0ad0e1.js";import{V as d}from"./index.aafdbda8.js";import{V as p}from"./index.5398e4f6.js";import{V as f}from"./index.8e37fe56.js";import{a as B}from"./use-translate.d2900b8c.js";import{w as h}from"./with-install.19a35764.js";import{_ as C}from"./index.b70c9b40.js";import{z as y,C as V,r as g,o as x,a as T,e as t,w as l,B as e,d as _,h as c,t as b,F as k}from"./vue-libs.b44bc779.js";import"./constant.80c6de18.js";import"./use-expose.c942d5f8.js";import"./index.bbd81525.js";import"./use-route.82f2be69.js";import"./use-id.46df47b7.js";import"./use-refs.b3168e03.js";import"./use-touch.04ca7093.js";import"./index.4e4daaac.js";const w=h(C),E=w,F={style:{margin:"16px"}},S={style:{margin:"16px"}},X=y({__name:"index",setup(D){const o=B({"zh-CN":{rate:"\u8BC4\u5206",slider:"\u6ED1\u5757",switch:"\u5F00\u5173",submit:"\u63D0\u4EA4",customTheme:"\u5B9A\u5236\u4E3B\u9898",defaultTheme:"\u9ED8\u8BA4\u4E3B\u9898"},"en-US":{rate:"Rate",slider:"Slider",switch:"Switch",submit:"Submit",customTheme:"Custom Theme",defaultTheme:"DefaultTheme"}}),u=V(4),i=V(50),v={rateIconFullColor:"#07c160",sliderBarHeight:"4px",sliderButtonWidth:"20px",sliderButtonHeight:"20px",sliderActiveBackgroundColor:"#07c160",buttonPrimaryBorderColor:"#07c160",buttonPrimaryBackgroundColor:"#07c160"};return(P,a)=>{const n=g("demo-block");return x(),T(k,null,[t(n,{title:e(o)("defaultTheme")},{default:l(()=>[t(e(s),null,{default:l(()=>[t(e(m),{name:"rate",label:e(o)("rate")},{input:l(()=>[t(e(d),{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=r=>u.value=r)},null,8,["modelValue"])]),_:1},8,["label"]),t(e(m),{name:"slider",label:e(o)("slider")},{input:l(()=>[t(e(p),{modelValue:i.value,"onUpdate:modelValue":a[1]||(a[1]=r=>i.value=r)},null,8,["modelValue"])]),_:1},8,["label"]),_("div",F,[t(e(f),{round:"",block:"",type:"primary","native-type":"submit"},{default:l(()=>[c(b(e(o)("submit")),1)]),_:1})])]),_:1})]),_:1},8,["title"]),t(n,{title:e(o)("customTheme")},{default:l(()=>[t(e(E),{"theme-vars":v},{default:l(()=>[t(e(s),null,{default:l(()=>[t(e(m),{name:"rate",label:e(o)("rate")},{input:l(()=>[t(e(d),{modelValue:u.value,"onUpdate:modelValue":a[2]||(a[2]=r=>u.value=r)},null,8,["modelValue"])]),_:1},8,["label"]),t(e(m),{name:"slider",label:e(o)("slider")},{input:l(()=>[t(e(p),{modelValue:i.value,"onUpdate:modelValue":a[3]||(a[3]=r=>i.value=r)},null,8,["modelValue"])]),_:1},8,["label"]),_("div",S,[t(e(f),{round:"",block:"",type:"primary","native-type":"submit"},{default:l(()=>[c(b(e(o)("submit")),1)]),_:1})])]),_:1})]),_:1})]),_:1},8,["title"])],64)}}});export{X as default};