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

2 lines
8.4 KiB
JavaScript

/*! For license information please see 3323.275eac9c.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([["3323"],{73485:function(t,e,r){"use strict";r.r(e);var n=r("64211");r("32899");let o=n.Z;e.default=o},64211:function(t,e,r){"use strict";var n=r("80681"),o=r("11848"),l=r("57122"),a=r("96528"),i=r("95786"),c=r("54369");e.Z=(0,n.aZ)({__name:"index",setup(t){var e=(0,c.q)({"zh-CN":{type:"\u52A0\u8F7D\u7C7B\u578B",text:"\u52A0\u8F7D\u6587\u6848",size:"\u81EA\u5B9A\u4E49\u5927\u5C0F",color:"\u81EA\u5B9A\u4E49\u989C\u8272",vertical:"\u5782\u76F4\u6392\u5217",textColor:"\u81EA\u5B9A\u4E49\u6587\u672C\u989C\u8272",customIcon:"\u81EA\u5B9A\u4E49\u56FE\u6807"},"en-US":{type:"Type",text:"Text",size:"Size",color:"Color",vertical:"Vertical",textColor:"Text Color",customIcon:"Custom Icon"}});return(t,r)=>{var c=(0,n.up)("demo-block");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(c,{title:(0,o.SU)(e)("type")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP)),(0,n.Wm)((0,o.SU)(i.ZP),{type:"spinner"})]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(e)("color")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{color:"#1989fa"}),(0,n.Wm)((0,o.SU)(i.ZP),{type:"spinner",color:"#1989fa"})]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(e)("size")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{size:"24"}),(0,n.Wm)((0,o.SU)(i.ZP),{type:"spinner",size:"24"})]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(e)("text")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{size:"24px"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(e)("loading")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(e)("vertical")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{size:"24px",vertical:""},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(e)("loading")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(e)("textColor")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{size:"24px",vertical:"",color:"#0094ff"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(e)("loading")),1)]),_:1}),(0,n.Wm)((0,o.SU)(i.ZP),{size:"24px",vertical:"","text-color":"#0094ff"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(e)("loading")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(e)("customIcon")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{vertical:""},{icon:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(a.ZP),{name:"star-o",size:"30"})]),default:(0,n.w5)(()=>[(0,n.Uk)(" "+(0,l.zw)((0,o.SU)(e)("loading")),1)]),_:1})]),_:1},8,["title"])],64)}}})},72555:function(t,e,r){"use strict";r.d(e,{Ct:function(){return l}});var n=r("63112"),o=r("63022"),l=(0,n.n)(o.Z);e.ZP=l},14517:function(t,e,r){"use strict";r.d(e,{H:function(){return l},t:function(){return o}});var n=2e3,o=()=>++n,l=t=>{n=t}},96528:function(t,e,r){"use strict";r.d(e,{JO:function(){return l}});var n=r("63112"),o=r("28779"),l=(0,n.n)(o.Z);e.ZP=l},95786:function(t,e,r){"use strict";r.d(e,{gb:function(){return l}});var n=r("63112"),o=r("2309"),l=(0,n.n)(o.Z);e.ZP=l},78335:function(t,e,r){"use strict";r.d(e,{Ce:function(){return i},J5:function(){return l},Or:function(){return o},SI:function(){return u},SQ:function(){return s},Vg:function(){return n},ir:function(){return a},qM:function(){return c}});var n=null,o=[Number,String],l={type:Boolean,default:!0},a=t=>({type:t,required:!0}),i=()=>({type:Array,default:()=>[]}),c=t=>({type:Number,default:t}),u=t=>({type:o,default:t}),s=t=>({type:String,default:t})},63112:function(t,e,r){"use strict";r.d(e,{n:function(){return o}});var n=r("20358");function o(t){return t.install=e=>{var{name:r}=t;r&&(e.component(r,t),e.component((0,n._A)("-".concat(r)),t))},t}},63022:function(t,e,r){"use strict";r("82116"),r("17989"),r("56115"),r("59644"),r("89176");var n=r("80681"),o=r("62568"),l=r("78335"),a=r("12308"),i=r("20358"),[c,u]=(0,o.do)("badge"),s={dot:Boolean,max:l.Or,tag:(0,l.SQ)("div"),color:String,offset:Array,content:l.Or,showZero:l.J5,position:(0,l.SQ)("top-right")};e.Z=(0,n.aZ)({name:c,props:s,setup(t,e){var{slots:r}=e,o=()=>{if(r.content)return!0;var{content:e,showZero:n}=t;return(0,a.Xq)(e)&&""!==e&&(n||0!==e&&"0"!==e)},l=()=>{var{dot:e,max:n,content:l}=t;if(!e&&o())return r.content?r.content():(0,a.Xq)(n)&&(0,a.kE)(l)&&+l>+n?"".concat(n,"+"):l},c=t=>t.startsWith("-")?t.replace("-",""):"-".concat(t),s=(0,n.Fl)(()=>{var e={background:t.color};if(t.offset){var[n,o]=t.offset,{position:l}=t,[a,u]=l.split("-");r.default?("number"==typeof o?e[a]=(0,i.Nn)("top"===a?o:-o):e[a]="top"===a?(0,i.Nn)(o):c(o),"number"==typeof n?e[u]=(0,i.Nn)("left"===u?n:-n):e[u]="left"===u?(0,i.Nn)(n):c(n)):(e.marginTop=(0,i.Nn)(o),e.marginLeft=(0,i.Nn)(n))}return e}),f=()=>{if(o()||t.dot)return(0,n.Wm)("div",{class:u([t.position,{dot:t.dot,fixed:!!r.default}]),style:s.value},[l()])};return()=>{if(r.default){var{tag:e}=t;return(0,n.Wm)(e,{class:u("wrapper")},{default:()=>[r.default(),f()]})}return f()}}})},53419:function(t,e,r){"use strict";r.d(e,{q9:function(){return f}}),r("82116"),r("17989"),r("86795"),r("56115"),r("59644"),r("31564"),r("8649"),r("70629");var n=r("80681"),o=r("62568"),l=r("78335"),a=r("20358"),i=r("12308"),c=r("14517"),[u,s]=(0,o.do)("config-provider"),f=Symbol(u),d={tag:(0,l.SQ)("div"),theme:(0,l.SQ)("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:(0,l.SQ)("local"),iconPrefix:String};function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach(r=>{t[r]!==e[r]&&document.documentElement.style.setProperty(r,t[r])}),Object.keys(e).forEach(e=>{!t[e]&&document.documentElement.style.removeProperty(e)})}e.ZP=(0,n.aZ)({name:u,props:d,setup(t,e){var{slots:r}=e,o=(0,n.Fl)(()=>{var e,r;return e=(0,i.l7)({},t.themeVars,"dark"===t.theme?t.themeVarsDark:t.themeVarsLight),r={},Object.keys(e).forEach(t=>{var n=(0,a.GL)(t).replace(/([a-zA-Z])(\d)/g,"$1-$2");r["--van-".concat(n)]=e[t]}),r});if(i._f){var l=()=>{document.documentElement.classList.add("van-theme-".concat(t.theme))},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.theme;document.documentElement.classList.remove("van-theme-".concat(e))};(0,n.YP)(()=>t.theme,(t,e)=>{e&&u(e),l()},{immediate:!0}),(0,n.dl)(l),(0,n.se)(u),(0,n.Jd)(u),(0,n.YP)(o,(e,r)=>{"global"===t.themeVarsScope&&m(e,r)}),(0,n.YP)(()=>t.themeVarsScope,(t,e)=>{"global"===e&&m({},o.value),"global"===t&&m(o.value,{})}),"global"===t.themeVarsScope&&m(o.value,{})}return(0,n.JJ)(f,t),(0,n.m0)(()=>{void 0!==t.zIndex&&(0,c.H)(t.zIndex)}),()=>(0,n.Wm)(t.tag,{class:s(),style:"local"===t.themeVarsScope?o.value:void 0},{default:()=>{var t;return[null===(t=r.default)||void 0===t?void 0:t.call(r)]}})}})},28779:function(t,e,r){"use strict";r("82116"),r("17989"),r("24660");var n=r("80681"),o=r("62568"),l=r("78335"),a=r("20358"),i=r("72555"),c=r("53419"),[u,s]=(0,o.do)("icon"),f=t=>null==t?void 0:t.includes("/"),d={dot:Boolean,tag:(0,l.SQ)("i"),name:String,size:l.Or,badge:l.Or,color:String,badgeProps:Object,classPrefix:String};e.Z=(0,n.aZ)({name:u,props:d,setup(t,e){var{slots:r}=e,o=(0,n.f3)(c.q9,null),l=(0,n.Fl)(()=>t.classPrefix||(null==o?void 0:o.iconPrefix)||s());return()=>{var{tag:e,dot:o,name:c,size:u,badge:d,color:m}=t,v=f(c);return(0,n.Wm)(i.Ct,(0,n.dG)({dot:o,tag:e,class:[l.value,v?"":"".concat(l.value,"-").concat(c)],style:{color:m,fontSize:(0,a.Nn)(u)},content:d},t.badgeProps),{default:()=>{var t;return[null===(t=r.default)||void 0===t?void 0:t.call(r),v&&(0,n.Wm)("img",{class:s("image"),src:c},null)]}})}}})},2309:function(t,e,r){"use strict";r("82116"),r("17989"),r("66786"),r("14529");var n=r("80681"),o=r("62568"),l=r("78335"),a=r("12308"),i=r("20358"),[c,u]=(0,o.do)("loading"),s=Array(12).fill(null).map((t,e)=>(0,n.Wm)("i",{class:u("line",String(e+1))},null)),f=(0,n.Wm)("svg",{class:u("circular"),viewBox:"25 25 50 50"},[(0,n.Wm)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),d={size:l.Or,type:(0,l.SQ)("circular"),color:String,vertical:Boolean,textSize:l.Or,textColor:String};e.Z=(0,n.aZ)({name:c,props:d,setup(t,e){var{slots:r}=e,o=(0,n.Fl)(()=>(0,a.l7)({color:t.color},(0,i.Xn)(t.size))),l=()=>{var e="spinner"===t.type?s:f;return(0,n.Wm)("span",{class:u("spinner",t.type),style:o.value},[r.icon?r.icon():e])},c=()=>{if(r.default){var e;return(0,n.Wm)("span",{class:u("text"),style:{fontSize:(0,i.Nn)(t.textSize),color:null!==(e=t.textColor)&&void 0!==e?e:t.color}},[r.default()])}};return()=>{var{type:e,vertical:r}=t;return(0,n.Wm)("div",{class:u([e,{vertical:r}]),"aria-live":"polite","aria-busy":!0},[l(),c()])}}})},32899:function(t,e,r){"use strict";r.r(t.exports={})},740:function(t,e,r){"use strict";r.r(t.exports={})}}]);