mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
import{a as d,V as b}from"./index.bb5818e1.js";import{V as n,a}from"./index.f976ee38.js";import{a as g}from"./use-translate.d2900b8c.js";import{T as h}from"./function-call.509e41a7.js";import{z as B,C as s,o as C,c as E,w as i,e,d as m,t as r,B as t}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";import"./constant.80c6de18.js";import"./use-route.82f2be69.js";import"./index.b70c9b40.js";import"./mount-component.f3744995.js";import"./use-expose.c942d5f8.js";import"./index.e6e790ed.js";import"./interceptor.f0c85874.js";import"./use-touch.04ca7093.js";import"./use-lazy-render.f712e85e.js";import"./on-popup-reopen.138c77eb.js";import"./index.d46e53a8.js";import"./index.4e4daaac.js";const w={class:"demo-sidebar-title"},x={class:"demo-sidebar-title"},D={class:"demo-sidebar-title"},U={class:"demo-sidebar-title"},P=B({__name:"index",setup(S){const l=g({"zh-CN":{title:"\u6807\u7B7E\u540D",disabled:"\u7981\u7528\u9009\u9879",showBadge:"\u5FBD\u6807\u63D0\u793A",changeEvent:"\u76D1\u542C\u5207\u6362\u4E8B\u4EF6"},"en-US":{disabled:"Disabled",showBadge:"Show Badge",changeEvent:"Change Event"}}),p=s(0),_=s(0),f=s(0),V=s(0),v=c=>h(`${l("title")} ${c+1}`);return(c,o)=>(C(),E(t(b),{"column-num":2,border:!1},{default:i(()=>[e(t(d),null,{default:i(()=>[m("h3",w,r(t(l)("basicUsage")),1),e(t(n),{modelValue:p.value,"onUpdate:modelValue":o[0]||(o[0]=u=>p.value=u)},{default:i(()=>[e(t(a),{title:t(l)("title")},null,8,["title"]),e(t(a),{title:t(l)("title")},null,8,["title"]),e(t(a),{title:t(l)("title")},null,8,["title"])]),_:1},8,["modelValue"])]),_:1}),e(t(d),null,{default:i(()=>[m("h3",x,r(t(l)("showBadge")),1),e(t(n),{modelValue:_.value,"onUpdate:modelValue":o[1]||(o[1]=u=>_.value=u)},{default:i(()=>[e(t(a),{title:t(l)("title"),dot:""},null,8,["title"]),e(t(a),{title:t(l)("title"),badge:"5"},null,8,["title"]),e(t(a),{title:t(l)("title"),badge:"20"},null,8,["title"])]),_:1},8,["modelValue"])]),_:1}),e(t(d),null,{default:i(()=>[m("h3",D,r(t(l)("disabled")),1),e(t(n),{modelValue:f.value,"onUpdate:modelValue":o[2]||(o[2]=u=>f.value=u)},{default:i(()=>[e(t(a),{title:t(l)("title")},null,8,["title"]),e(t(a),{title:t(l)("title"),disabled:""},null,8,["title"]),e(t(a),{title:t(l)("title")},null,8,["title"])]),_:1},8,["modelValue"])]),_:1}),e(t(d),null,{default:i(()=>[m("h3",U,r(t(l)("changeEvent")),1),e(t(n),{modelValue:V.value,"onUpdate:modelValue":o[3]||(o[3]=u=>V.value=u),onChange:v},{default:i(()=>[e(t(a),{title:`${t(l)("title")} 1`},null,8,["title"]),e(t(a),{title:`${t(l)("title")} 2`},null,8,["title"]),e(t(a),{title:`${t(l)("title")} 3`},null,8,["title"])]),_:1},8,["modelValue"])]),_:1})]),_:1}))}});export{P as default};
|