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

2 lines
6.8 KiB
JavaScript

import{V as o}from"./index.97971141.js";import{V as v}from"./index.da0ad0e1.js";import{V as _}from"./index.e6e790ed.js";import{a as V}from"./use-translate.d2900b8c.js";import{T as r}from"./function-call.509e41a7.js";import{z as w,C as c,D as k,r as z,o as B,a as I,e,w as a,B as u,F as S}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";import"./Picker.483100d2.js";import"./constant.80c6de18.js";import"./use-expose.c942d5f8.js";import"./index.4e4daaac.js";import"./deep-clone.931caa9d.js";import"./use-touch.04ca7093.js";import"./index.bbd81525.js";import"./use-route.82f2be69.js";import"./index.b70c9b40.js";import"./use-id.46df47b7.js";import"./interceptor.f0c85874.js";import"./use-lazy-render.f712e85e.js";import"./on-popup-reopen.138c77eb.js";import"./index.d46e53a8.js";import"./mount-component.f3744995.js";const h={"zh-CN":[{values:["\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94"],defaultIndex:2},{values:["\u4E0A\u5348","\u4E0B\u5348","\u665A\u4E0A"],defaultIndex:1}],"en-US":[{values:["Monday","Tuesday","Wednesday","Thursday","Friday"],defaultIndex:2},{values:["Morning","Afternoon","Evening"],defaultIndex:1}]},p={"zh-CN":[{text:"\u6D59\u6C5F",children:[{text:"\u676D\u5DDE",children:[{text:"\u897F\u6E56\u533A"},{text:"\u4F59\u676D\u533A"}]},{text:"\u6E29\u5DDE",children:[{text:"\u9E7F\u57CE\u533A"},{text:"\u74EF\u6D77\u533A"}]}]},{text:"\u798F\u5EFA",children:[{text:"\u798F\u5DDE",children:[{text:"\u9F13\u697C\u533A"},{text:"\u53F0\u6C5F\u533A"}]},{text:"\u53A6\u95E8",children:[{text:"\u601D\u660E\u533A"},{text:"\u6D77\u6CA7\u533A"}]}]}],"en-US":[{text:"Zhejiang",children:[{text:"Hangzhou",children:[{text:"Xihu"},{text:"Yuhang"}]},{text:"Wenzhou",children:[{text:"Lucheng"},{text:"Ouhai"}]}]},{text:"Fujian",children:[{text:"Fuzhou",children:[{text:"Gulou"},{text:"Taijiang"}]},{text:"Xiamen",children:[{text:"Siming"},{text:"Haicang"}]}]}]},x={"zh-CN":[{cityName:"\u6D59\u6C5F",cities:[{cityName:"\u676D\u5DDE",cities:[{cityName:"\u897F\u6E56\u533A"},{cityName:"\u4F59\u676D\u533A"}]},{cityName:"\u6E29\u5DDE",cities:[{cityName:"\u9E7F\u57CE\u533A"},{cityName:"\u74EF\u6D77\u533A"}]}]},{cityName:"\u798F\u5EFA",cities:[{cityName:"\u798F\u5DDE",cities:[{cityName:"\u9F13\u697C\u533A"},{cityName:"\u53F0\u6C5F\u533A"}]},{cityName:"\u53A6\u95E8",cities:[{cityName:"\u601D\u660E\u533A"},{cityName:"\u6D77\u6CA7\u533A"}]}]}],"en-US":[{cityName:"Zhejiang",cities:[{cityName:"Hangzhou",cities:[{cityName:"Xihu"},{cityName:"Yuhang"}]},{cityName:"Wenzhou",cities:[{cityName:"Lucheng"},{cityName:"Ouhai"}]}]},{cityName:"Fujian",cities:[{cityName:"Fuzhou",cities:[{cityName:"Gulou"},{cityName:"Taijiang"}]},{cityName:"Xiamen",cities:[{cityName:"Siming"},{cityName:"Haicang"}]}]}]},iu=w({__name:"index",setup(T){const t=V({"zh-CN":{city:"\u57CE\u5E02",cascade:"\u7EA7\u8054\u9009\u62E9",withPopup:"\u642D\u914D\u5F39\u51FA\u5C42\u4F7F\u7528",chooseCity:"\u9009\u62E9\u57CE\u5E02",showToolbar:"\u5C55\u793A\u9876\u90E8\u680F",dateColumns:h["zh-CN"],defaultIndex:"\u9ED8\u8BA4\u9009\u4E2D\u9879",disableOption:"\u7981\u7528\u9009\u9879",cascadeColumns:p["zh-CN"],multipleColumns:"\u591A\u5217\u9009\u62E9",setColumnValues:"\u52A8\u6001\u8BBE\u7F6E\u9009\u9879",customChildrenKey:"\u81EA\u5B9A\u4E49 Columns \u7ED3\u6784",customChildrenColumns:x["zh-CN"],textColumns:["\u676D\u5DDE","\u5B81\u6CE2","\u6E29\u5DDE","\u7ECD\u5174","\u6E56\u5DDE","\u5609\u5174","\u91D1\u534E","\u8862\u5DDE"],disabledColumns:[{text:"\u676D\u5DDE",disabled:!0},{text:"\u5B81\u6CE2"},{text:"\u6E29\u5DDE"}],column3:{\u6D59\u6C5F:["\u676D\u5DDE","\u5B81\u6CE2","\u6E29\u5DDE","\u5609\u5174","\u6E56\u5DDE"],\u798F\u5EFA:["\u798F\u5DDE","\u53A6\u95E8","\u8386\u7530","\u4E09\u660E","\u6CC9\u5DDE"]},toastContent:(l,i)=>`\u5F53\u524D\u503C\uFF1A${l}, \u5F53\u524D\u7D22\u5F15\uFF1A${i}`},"en-US":{city:"City",cascade:"Cascade",withPopup:"With Popup",chooseCity:"Choose City",showToolbar:"Show Toolbar",dateColumns:h["en-US"],defaultIndex:"Default Index",disableOption:"Disable Option",cascadeColumns:p["en-US"],multipleColumns:"Multiple Columns",setColumnValues:"Set Column Values",customChildrenKey:"Custom Columns Fields",customChildrenColumns:x["en-US"],textColumns:["Delaware","Florida","Georqia","Indiana","Maine"],disabledColumns:[{text:"Delaware",disabled:!0},{text:"Florida"},{text:"Georqia"}],column3:{Group1:["Delaware","Florida","Georqia","Indiana","Maine"],Group2:["Alabama","Kansas","Louisiana","Texas"]},toastContent:(l,i)=>`Value: ${l}, Index\uFF1A${i}`}}),C=c(),s=c(!1),m=c(""),F=c({text:"cityName",children:"cities"}),E=k(()=>{const l=t("column3");return[{values:Object.keys(l),className:"column1"},{values:l[Object.keys(l)[0]],className:"column2",defaultIndex:2}]}),D=(l,i)=>{r(t("toastContent",l,i))},y=l=>{C.value.setColumnValues(1,t("column3")[l[0]])},f=(l,i)=>{r(t("toastContent",l,i))},A=()=>r(t("cancel")),N=()=>{s.value=!1},g=()=>{s.value=!0},b=l=>{s.value=!1,m.value=l};return(l,i)=>{const n=z("demo-block");return B(),I(S,null,[e(n,{card:"",title:u(t)("basicUsage")},{default:a(()=>[e(u(o),{title:u(t)("title"),columns:u(t)("textColumns"),onChange:D},null,8,["title","columns"])]),_:1},8,["title"]),e(n,{card:"",title:u(t)("defaultIndex")},{default:a(()=>[e(u(o),{title:u(t)("title"),columns:u(t)("textColumns"),"default-index":2,onChange:D},null,8,["title","columns"])]),_:1},8,["title"]),e(n,{card:"",title:u(t)("multipleColumns")},{default:a(()=>[e(u(o),{title:u(t)("title"),columns:u(t)("dateColumns"),onCancel:A,onConfirm:f},null,8,["title","columns"])]),_:1},8,["title"]),e(n,{card:"",title:u(t)("cascade")},{default:a(()=>[e(u(o),{title:u(t)("title"),columns:u(t)("cascadeColumns")},null,8,["title","columns"])]),_:1},8,["title"]),e(n,{card:"",title:u(t)("disableOption")},{default:a(()=>[e(u(o),{title:u(t)("title"),columns:u(t)("disabledColumns")},null,8,["title","columns"])]),_:1},8,["title"]),e(n,{card:"",title:u(t)("setColumnValues")},{default:a(()=>[e(u(o),{ref_key:"picker",ref:C,title:u(t)("title"),columns:u(E),onChange:y},null,8,["title","columns"])]),_:1},8,["title"]),e(n,{card:"",title:u(t)("loadingStatus")},{default:a(()=>[e(u(o),{loading:"",title:u(t)("title"),columns:u(E)},null,8,["title","columns"])]),_:1},8,["title"]),e(n,{card:"",title:u(t)("withPopup")},{default:a(()=>[e(u(v),{modelValue:m.value,"onUpdate:modelValue":i[0]||(i[0]=d=>m.value=d),"is-link":"",readonly:"",label:u(t)("city"),placeholder:u(t)("chooseCity"),onClick:g},null,8,["modelValue","label","placeholder"]),e(u(_),{show:s.value,"onUpdate:show":i[1]||(i[1]=d=>s.value=d),round:"",position:"bottom"},{default:a(()=>[e(u(o),{title:u(t)("title"),columns:u(t)("textColumns"),onCancel:N,onConfirm:b},null,8,["title","columns"])]),_:1},8,["show"])]),_:1},8,["title"]),e(n,{card:"",title:u(t)("customChildrenKey")},{default:a(()=>[e(u(o),{title:u(t)("title"),columns:u(t)("customChildrenColumns"),"columns-field-names":F.value},null,8,["title","columns","columns-field-names"])]),_:1},8,["title"])],64)}}});export{iu as default};