vant/static/js/async/6083.f4b7f8a1.js
2024-04-20 08:49:23 +00:00

2 lines
14 KiB
JavaScript

/*! For license information please see 6083.f4b7f8a1.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([["6083"],{37075:function(e,t,a){"use strict";a.r(t);let r=a("38658").Z;t.default=r},38658:function(e,t,a){"use strict";var r=a("80681"),n=a("11848"),i=a("59415"),o=a("7197"),l=a("54369"),c=a("24647"),u=a("93461"),d=a("75134"),s=a("24718");t.Z=(0,r.aZ)({__name:"index",setup(e){var t=(0,l.q)({"zh-CN":{showBadge:"\u5FBD\u6807\u63D0\u793A",radioMode:"\u5355\u9009\u6A21\u5F0F",multipleMode:"\u591A\u9009\u6A21\u5F0F",customContent:"\u81EA\u5B9A\u4E49\u5185\u5BB9",data:u.u,dataSimple:[{text:"\u5206\u7EC4 1"},{text:"\u5206\u7EC4 2"}]},"en-US":{showBadge:"Show Badge",radioMode:"Radio Mode",multipleMode:"Multiple Mode",customContent:"Custom Content",data:d.P,dataSimple:[{text:"Group 1"},{text:"Group 2"}]}}),a=(0,n.iH)(1),v=(0,n.iH)(1),m=(0,n.iH)([1,2]),f=(0,n.iH)(0),p=(0,n.iH)(0),g=(0,n.iH)(0),h=(0,n.iH)(0),x=(0,r.Fl)(()=>t("data")),b=(0,r.Fl)(()=>t("dataSimple")),S=(0,r.Fl)(()=>{var e=(0,s.I)(t("data")).slice(0,2);return e[0].dot=!0,e[1].badge=5,e});return(e,l)=>{var u=(0,r.up)("demo-block");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(u,{title:(0,n.SU)(t)("radioMode")},{default:(0,r.w5)(()=>[(0,r.Wm)((0,n.SU)(i.ZP),{"active-id":a.value,"onUpdate:activeId":l[0]||(l[0]=e=>a.value=e),"main-active-index":f.value,"onUpdate:mainActiveIndex":l[1]||(l[1]=e=>f.value=e),items:x.value},null,8,["active-id","main-active-index","items"])]),_:1},8,["title"]),(0,r.Wm)(u,{title:(0,n.SU)(t)("multipleMode")},{default:(0,r.w5)(()=>[(0,r.Wm)((0,n.SU)(i.ZP),{"active-id":m.value,"onUpdate:activeId":l[2]||(l[2]=e=>m.value=e),"main-active-index":p.value,"onUpdate:mainActiveIndex":l[3]||(l[3]=e=>p.value=e),items:x.value},null,8,["active-id","main-active-index","items"])]),_:1},8,["title"]),(0,r.Wm)(u,{title:(0,n.SU)(t)("customContent")},{default:(0,r.w5)(()=>[(0,r.Wm)((0,n.SU)(i.ZP),{"main-active-index":g.value,"onUpdate:mainActiveIndex":l[4]||(l[4]=e=>g.value=e),height:"55vw",items:b.value},{content:(0,r.w5)(()=>[0===g.value?((0,r.wg)(),(0,r.j4)((0,n.SU)(o.ZP),{key:0,"show-loading":!1,src:(0,n.SU)(c.RQ)("apple-1.jpeg")},null,8,["src"])):(0,r.kq)("",!0),1===g.value?((0,r.wg)(),(0,r.j4)((0,n.SU)(o.ZP),{key:1,"show-loading":!1,src:(0,n.SU)(c.RQ)("apple-2.jpeg")},null,8,["src"])):(0,r.kq)("",!0)]),_:1},8,["main-active-index","items"])]),_:1},8,["title"]),(0,r.Wm)(u,{title:(0,n.SU)(t)("showBadge")},{default:(0,r.w5)(()=>[(0,r.Wm)((0,n.SU)(i.ZP),{"active-id":v.value,"onUpdate:activeId":l[5]||(l[5]=e=>v.value=e),"main-active-index":h.value,"onUpdate:mainActiveIndex":l[6]||(l[6]=e=>h.value=e),height:"55vw",items:S.value},null,8,["active-id","main-active-index","items"])]),_:1},8,["title"])],64)}}})},24647:function(e,t,a){"use strict";a.d(t,{RQ:function(){return r}});var r=e=>"https://fastly.jsdelivr.net/npm/@vant/assets/".concat(e)},72555:function(e,t,a){"use strict";a.d(t,{Ct:function(){return i}});var r=a("63112"),n=a("63022"),i=(0,r.n)(n.Z);t.ZP=i},14517:function(e,t,a){"use strict";a.d(t,{H:function(){return i},t:function(){return n}});var r=2e3,n=()=>++r,i=e=>{r=e}},6149:function(e,t,a){"use strict";a.d(t,{BC:function(){return i},g2:function(){return n},yj:function(){return o}}),a("56115"),a("59644");var r=a("80681"),n={to:[String,Object],url:String,replace:Boolean};function i(e){var{to:t,url:a,replace:r,$router:n}=e;t&&n?n[r?"replace":"push"](t):a&&(r?location.replace(a):location.href=a)}function o(){var e=(0,r.FN)().proxy;return()=>i(e)}},96528:function(e,t,a){"use strict";a.d(t,{JO:function(){return i}});var r=a("63112"),n=a("28779"),i=(0,r.n)(n.Z);t.ZP=i},7197:function(e,t,a){"use strict";a.d(t,{Ee:function(){return i}});var r=a("63112"),n=a("46858"),i=(0,r.n)(n.Z);t.ZP=i},30578:function(e,t,a){"use strict";a.d(t,{R6:function(){return i}});var r=a("63112"),n=a("17551"),i=(0,r.n)(n.Z);t.ZP=i},69434:function(e,t,a){"use strict";a.d(t,{YE:function(){return i}});var r=a("63112"),n=a("68952"),i=(0,r.n)(n.ZP);t.ZP=i},75134:function(e,t,a){"use strict";a.d(t,{P:function(){return r}});var r=[{text:"Group 1",children:[{text:"Delaware",id:1},{text:"Florida",id:2},{text:"Georgia",id:3,disabled:!0}]},{text:"Group 2",children:[{text:"Alabama",id:4},{text:"Kansas",id:5},{text:"Louisiana",id:6}]},{text:"Group 3",disabled:!0,children:[{text:"Alabama",id:7},{text:"Kansas",id:8}]}]},93461:function(e,t,a){"use strict";a.d(t,{u:function(){return r}});var r=[{text:"\u6D59\u6C5F",children:[{text:"\u676D\u5DDE",id:1},{text:"\u6E29\u5DDE",id:2},{text:"\u5B81\u6CE2",id:3,disabled:!0}]},{text:"\u6C5F\u82CF",children:[{text:"\u5357\u4EAC",id:4},{text:"\u65E0\u9521",id:5},{text:"\u5F90\u5DDE",id:6}]},{text:"\u798F\u5EFA",disabled:!0,children:[{text:"\u6CC9\u5DDE",id:7},{text:"\u53A6\u95E8",id:8}]}]},59415:function(e,t,a){"use strict";var r=a("63112"),n=a("46312"),i=(0,r.n)(n.Z);t.ZP=i},24718:function(e,t,a){"use strict";a.d(t,{I:function(){return function e(t){if(!(0,r.Xq)(t))return t;if(Array.isArray(t))return t.map(t=>e(t));if((0,r.Kn)(t)){var a={};return Object.keys(t).forEach(r=>{a[r]=e(t[r])}),a}return t}}}),a("66786"),a("14529"),a("31564"),a("8649"),a("70629");var r=a("12308")},78335:function(e,t,a){"use strict";a.d(t,{Ce:function(){return l},J5:function(){return i},Or:function(){return n},SI:function(){return u},SQ:function(){return d},Vg:function(){return r},ir:function(){return o},qM:function(){return c}});var r=null,n=[Number,String],i={type:Boolean,default:!0},o=e=>({type:e,required:!0}),l=()=>({type:Array,default:()=>[]}),c=e=>({type:Number,default:e}),u=e=>({type:n,default:e}),d=e=>({type:String,default:e})},63112:function(e,t,a){"use strict";a.d(t,{n:function(){return n}});var r=a("20358");function n(e){return e.install=t=>{var{name:a}=e;a&&(t.component(a,e),t.component((0,r._A)("-".concat(a)),e))},e}},63022:function(e,t,a){"use strict";a("82116"),a("17989"),a("56115"),a("59644"),a("89176");var r=a("80681"),n=a("62568"),i=a("78335"),o=a("12308"),l=a("20358"),[c,u]=(0,n.do)("badge"),d={dot:Boolean,max:i.Or,tag:(0,i.SQ)("div"),color:String,offset:Array,content:i.Or,showZero:i.J5,position:(0,i.SQ)("top-right")};t.Z=(0,r.aZ)({name:c,props:d,setup(e,t){var{slots:a}=t,n=()=>{if(a.content)return!0;var{content:t,showZero:r}=e;return(0,o.Xq)(t)&&""!==t&&(r||0!==t&&"0"!==t)},i=()=>{var{dot:t,max:r,content:i}=e;if(!t&&n())return a.content?a.content():(0,o.Xq)(r)&&(0,o.kE)(i)&&+i>+r?"".concat(r,"+"):i},c=e=>e.startsWith("-")?e.replace("-",""):"-".concat(e),d=(0,r.Fl)(()=>{var t={background:e.color};if(e.offset){var[r,n]=e.offset,{position:i}=e,[o,u]=i.split("-");a.default?("number"==typeof n?t[o]=(0,l.Nn)("top"===o?n:-n):t[o]="top"===o?(0,l.Nn)(n):c(n),"number"==typeof r?t[u]=(0,l.Nn)("left"===u?r:-r):t[u]="left"===u?(0,l.Nn)(r):c(r)):(t.marginTop=(0,l.Nn)(n),t.marginLeft=(0,l.Nn)(r))}return t}),s=()=>{if(n()||e.dot)return(0,r.Wm)("div",{class:u([e.position,{dot:e.dot,fixed:!!a.default}]),style:d.value},[i()])};return()=>{if(a.default){var{tag:t}=e;return(0,r.Wm)(t,{class:u("wrapper")},{default:()=>[a.default(),s()]})}return s()}}})},53419:function(e,t,a){"use strict";a.d(t,{q9:function(){return s}}),a("82116"),a("17989"),a("86795"),a("56115"),a("59644"),a("31564"),a("8649"),a("70629");var r=a("80681"),n=a("62568"),i=a("78335"),o=a("20358"),l=a("12308"),c=a("14517"),[u,d]=(0,n.do)("config-provider"),s=Symbol(u),v={tag:(0,i.SQ)("div"),theme:(0,i.SQ)("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:(0,i.SQ)("local"),iconPrefix:String};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(a=>{e[a]!==t[a]&&document.documentElement.style.setProperty(a,e[a])}),Object.keys(t).forEach(t=>{!e[t]&&document.documentElement.style.removeProperty(t)})}t.ZP=(0,r.aZ)({name:u,props:v,setup(e,t){var{slots:a}=t,n=(0,r.Fl)(()=>{var t,a;return t=(0,l.l7)({},e.themeVars,"dark"===e.theme?e.themeVarsDark:e.themeVarsLight),a={},Object.keys(t).forEach(e=>{var r=(0,o.GL)(e).replace(/([a-zA-Z])(\d)/g,"$1-$2");a["--van-".concat(r)]=t[e]}),a});if(l._f){var i=()=>{document.documentElement.classList.add("van-theme-".concat(e.theme))},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.theme;document.documentElement.classList.remove("van-theme-".concat(t))};(0,r.YP)(()=>e.theme,(e,t)=>{t&&u(t),i()},{immediate:!0}),(0,r.dl)(i),(0,r.se)(u),(0,r.Jd)(u),(0,r.YP)(n,(t,a)=>{"global"===e.themeVarsScope&&m(t,a)}),(0,r.YP)(()=>e.themeVarsScope,(e,t)=>{"global"===t&&m({},n.value),"global"===e&&m(n.value,{})}),"global"===e.themeVarsScope&&m(n.value,{})}return(0,r.JJ)(s,e),(0,r.m0)(()=>{void 0!==e.zIndex&&(0,c.H)(e.zIndex)}),()=>(0,r.Wm)(e.tag,{class:d(),style:"local"===e.themeVarsScope?n.value:void 0},{default:()=>{var e;return[null===(e=a.default)||void 0===e?void 0:e.call(a)]}})}})},28779:function(e,t,a){"use strict";a("82116"),a("17989"),a("24660");var r=a("80681"),n=a("62568"),i=a("78335"),o=a("20358"),l=a("72555"),c=a("53419"),[u,d]=(0,n.do)("icon"),s=e=>null==e?void 0:e.includes("/"),v={dot:Boolean,tag:(0,i.SQ)("i"),name:String,size:i.Or,badge:i.Or,color:String,badgeProps:Object,classPrefix:String};t.Z=(0,r.aZ)({name:u,props:v,setup(e,t){var{slots:a}=t,n=(0,r.f3)(c.q9,null),i=(0,r.Fl)(()=>e.classPrefix||(null==n?void 0:n.iconPrefix)||d());return()=>{var{tag:t,dot:n,name:c,size:u,badge:v,color:m}=e,f=s(c);return(0,r.Wm)(l.Ct,(0,r.dG)({dot:n,tag:t,class:[i.value,f?"":"".concat(i.value,"-").concat(c)],style:{color:m,fontSize:(0,o.Nn)(u)},content:v},e.badgeProps),{default:()=>{var e;return[null===(e=a.default)||void 0===e?void 0:e.call(a),f&&(0,r.Wm)("img",{class:d("image"),src:c},null)]}})}}})},46858:function(e,t,a){"use strict";a("82116"),a("17989");var r=a("80681"),n=a("11848"),i=a("62568"),o=a("78335"),l=a("20358"),c=a("12308"),u=a("96528"),[d,s]=(0,i.do)("image"),v={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:o.Or,height:o.Or,radius:o.Or,lazyLoad:Boolean,iconSize:o.Or,showError:o.J5,errorIcon:(0,o.SQ)("photo-fail"),iconPrefix:String,showLoading:o.J5,loadingIcon:(0,o.SQ)("photo"),crossorigin:String,referrerpolicy:String};t.Z=(0,r.aZ)({name:d,props:v,emits:["load","error"],setup(e,t){var{emit:a,slots:i}=t,o=(0,n.iH)(!1),d=(0,n.iH)(!0),v=(0,n.iH)(),{$Lazyload:m}=(0,r.FN)().proxy,f=(0,r.Fl)(()=>{var t={width:(0,l.Nn)(e.width),height:(0,l.Nn)(e.height)};return(0,c.Xq)(e.radius)&&(t.overflow="hidden",t.borderRadius=(0,l.Nn)(e.radius)),t});(0,r.YP)(()=>e.src,()=>{o.value=!1,d.value=!0});var p=e=>{d.value&&(d.value=!1,a("load",e))},g=()=>{var e=new Event("load");Object.defineProperty(e,"target",{value:v.value,enumerable:!0}),p(e)},h=e=>{o.value=!0,d.value=!1,a("error",e)},x=(t,a,n)=>n?n():(0,r.Wm)(u.JO,{name:t,size:e.iconSize,class:a,classPrefix:e.iconPrefix},null),b=()=>d.value&&e.showLoading?(0,r.Wm)("div",{class:s("loading")},[x(e.loadingIcon,s("loading-icon"),i.loading)]):o.value&&e.showError?(0,r.Wm)("div",{class:s("error")},[x(e.errorIcon,s("error-icon"),i.error)]):void 0,S=()=>{if(!o.value&&e.src){var t={alt:e.alt,class:s("img"),style:{objectFit:e.fit,objectPosition:e.position},crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy};return e.lazyLoad?(0,r.wy)((0,r.Wm)("img",(0,r.dG)({ref:v},t),null),[[(0,r.Q2)("lazy"),e.src]]):(0,r.Wm)("img",(0,r.dG)({ref:v,src:e.src,onLoad:p,onError:h},t),null)}},y=e=>{var{el:t}=e,a=()=>{t===v.value&&d.value&&g()};v.value?a():(0,r.Y3)(a)},I=e=>{var{el:t}=e;t===v.value&&!o.value&&h()};return m&&c._f&&(m.$on("loaded",y),m.$on("error",I),(0,r.Jd)(()=>{m.$off("loaded",y),m.$off("error",I)})),(0,r.bv)(()=>{(0,r.Y3)(()=>{var t;(null===(t=v.value)||void 0===t?void 0:t.complete)&&!e.lazyLoad&&g()})}),()=>{var t;return(0,r.Wm)("div",{class:s({round:e.round,block:e.block}),style:f.value},[S(),b(),null===(t=i.default)||void 0===t?void 0:t.call(i)])}}})},17551:function(e,t,a){"use strict";a("82116"),a("17989");var r=a("80681"),n=a("62568"),i=a("12308"),o=a("78335"),l=a("68952"),c=a("22300"),u=a("6149"),d=a("72555"),[s,v]=(0,n.do)("sidebar-item"),m=(0,i.l7)({},u.g2,{dot:Boolean,title:String,badge:o.Or,disabled:Boolean,badgeProps:Object});t.Z=(0,r.aZ)({name:s,props:m,emits:["click"],setup(e,t){var{emit:a,slots:n}=t,i=(0,u.yj)(),{parent:o,index:s}=(0,c.NB)(l.pA);if(o){var m=()=>{!e.disabled&&(a("click",s.value),o.setActive(s.value),i())};return()=>{var{dot:t,badge:a,title:i,disabled:l}=e,c=s.value===o.getActive();return(0,r.Wm)("div",{role:"tab",class:v({select:c,disabled:l}),tabindex:l?void 0:0,"aria-selected":c,onClick:m},[(0,r.Wm)(d.Ct,(0,r.dG)({dot:t,class:v("text"),content:a},e.badgeProps),{default:()=>[n.title?n.title():i]})])}}}})},68952:function(e,t,a){"use strict";a.d(t,{pA:function(){return u}}),a("82116"),a("17989"),a("86795");var r=a("80681"),n=a("62568"),i=a("78335"),o=a("22300"),[l,c]=(0,n.do)("sidebar"),u=Symbol(l),d={modelValue:(0,i.SI)(0)};t.ZP=(0,r.aZ)({name:l,props:d,emits:["change","update:modelValue"],setup(e,t){var{emit:a,slots:n}=t,{linkChildren:i}=(0,o.$E)(u),l=()=>+e.modelValue;return i({getActive:l,setActive:e=>{e!==l()&&(a("update:modelValue",e),a("change",e))}}),()=>{var e;return(0,r.Wm)("div",{role:"tablist",class:c()},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}})},46312:function(e,t,a){"use strict";a("82116"),a("17989"),a("24660"),a("61557"),a("66786"),a("14529");var r=a("80681"),n=a("62568"),i=a("78335"),o=a("20358"),l=a("96528"),c=a("69434"),u=a("30578"),[d,s]=(0,n.do)("tree-select"),v={max:(0,i.SI)(1/0),items:(0,i.Ce)(),height:(0,i.SI)(300),selectedIcon:(0,i.SQ)("success"),mainActiveIndex:(0,i.SI)(0),activeId:{type:[Number,String,Array],default:0}};t.Z=(0,r.aZ)({name:d,props:v,emits:["clickNav","clickItem","update:activeId","update:mainActiveIndex"],setup(e,t){var{emit:a,slots:n}=t,i=t=>Array.isArray(e.activeId)?e.activeId.includes(t):e.activeId===t,d=t=>(0,r.Wm)("div",{key:t.id,class:["van-ellipsis",s("item",{active:i(t.id),disabled:t.disabled})],onClick:()=>{if(!t.disabled){if(Array.isArray(e.activeId)){var r,n=(r=e.activeId.slice()).indexOf(t.id);-1!==n?r.splice(n,1):r.length<+e.max&&r.push(t.id)}else r=t.id;a("update:activeId",r),a("clickItem",t)}}},[t.text,i(t.id)&&(0,r.Wm)(l.JO,{name:e.selectedIcon,class:s("selected")},null)]),v=e=>{a("update:mainActiveIndex",e)},m=e=>a("clickNav",e),f=()=>{var t,a=e.items.map(e=>(0,r.Wm)(u.R6,{dot:e.dot,badge:e.badge,class:[s("nav-item"),e.className],disabled:e.disabled,onClick:m},{title:()=>n["nav-text"]?n["nav-text"](e):e.text}));return(0,r.Wm)(c.YE,{class:s("nav"),modelValue:e.mainActiveIndex,onChange:v},"function"!=typeof(t=a)&&("[object Object]"!==Object.prototype.toString.call(t)||(0,r.lA)(t))?{default:()=>[a]}:a)},p=()=>{if(n.content)return n.content();var t=e.items[+e.mainActiveIndex]||{};if(t.children)return t.children.map(d)};return()=>(0,r.Wm)("div",{class:s(),style:{height:(0,o.Nn)(e.height)}},[f(),(0,r.Wm)("div",{class:s("content")},[p()])])}})}}]);