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

2 lines
14 KiB
JavaScript

/*! For license information please see 3026.db63cab6.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([["3026"],{2284:function(t,e,r){"use strict";r.r(e);var n=r("81591");r("18430");let l=n.Z;e.default=l},81591:function(t,e,r){"use strict";var n=r("80681"),l=r("11848"),o=r("57122"),a=r("99742"),i=r("88102"),u=r("54369");e.Z=(0,n.aZ)({__name:"index",setup(t){var e=(0,u.q)({"zh-CN":{type:"\u7C7B\u578B",mark:"\u6807\u8BB0\u6837\u5F0F",plain:"\u7A7A\u5FC3\u6837\u5F0F",round:"\u5706\u89D2\u6837\u5F0F",tagStyle:"\u6837\u5F0F\u98CE\u683C",closeable:"\u53EF\u5173\u95ED\u6807\u7B7E",smallSize:"\u5C0F\u53F7\u6807\u7B7E",largeSize:"\u5927\u53F7\u6807\u7B7E",mediumSize:"\u4E2D\u53F7\u6807\u7B7E",customSize:"\u6807\u7B7E\u5927\u5C0F",customColor:"\u81EA\u5B9A\u4E49\u989C\u8272",customBgColor:"\u80CC\u666F\u989C\u8272",customTextColor:"\u6587\u5B57\u989C\u8272",customPlainColor:"\u7A7A\u5FC3\u989C\u8272"},"en-US":{mark:"Mark style",plain:"Plain style",round:"Round style",tagStyle:"Tag Style",closeable:"Closeable",smallSize:"Small Size",largeSize:"Large Size",mediumSize:"Medium Size",customColor:"Custom Color",customSize:"Custom Size",customBgColor:"Background Color",customTextColor:"Text Color",customPlainColor:"Plain Color"}}),r=(0,l.iH)(!0),c=()=>{r.value=!1};return(t,u)=>{var s=(0,n.up)("demo-block");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(s,{card:"",title:(0,l.SU)(e)("basicUsage")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(a.ZP),{title:"primary ".concat((0,l.SU)(e)("type"))},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{type:"primary"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:"success ".concat((0,l.SU)(e)("type"))},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{type:"success"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:"danger ".concat((0,l.SU)(e)("type"))},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{type:"danger"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:"warning ".concat((0,l.SU)(e)("type"))},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{type:"warning"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"])]),_:1},8,["title"]),(0,n.Wm)(s,{card:"",title:(0,l.SU)(e)("tagStyle")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("plain")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{plain:"",type:"primary"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("round")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{round:"",type:"primary"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("mark")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{mark:"",type:"primary"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("closeable")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{closeable:"",show:r.value,size:"medium",type:"primary",onClose:c},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1},8,["show"])]),_:1},8,["title"])]),_:1},8,["title"]),(0,n.Wm)(s,{card:"",title:(0,l.SU)(e)("customSize")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("smallSize")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{type:"primary"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("mediumSize")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{type:"primary",size:"medium"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("largeSize")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{type:"primary",size:"large"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"])]),_:1},8,["title"]),(0,n.Wm)(s,{card:"",title:(0,l.SU)(e)("customColor")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("customBgColor")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{color:"#7232dd"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("customTextColor")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{color:"#ffe1e1","text-color":"#ad0000"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"]),(0,n.Wm)((0,l.SU)(a.ZP),{title:(0,l.SU)(e)("customPlainColor")},{value:(0,n.w5)(()=>[(0,n.Wm)((0,l.SU)(i.ZP),{color:"#7232dd",plain:""},{default:(0,n.w5)(()=>[(0,n.Uk)((0,o.zw)((0,l.SU)(e)("tag")),1)]),_:1})]),_:1},8,["title"])]),_:1},8,["title"])],64)}}})},72555:function(t,e,r){"use strict";r.d(e,{Ct:function(){return o}});var n=r("63112"),l=r("63022"),o=(0,n.n)(l.Z);e.ZP=o},99742:function(t,e,r){"use strict";r.d(e,{bL:function(){return o}});var n=r("63112"),l=r("54499"),o=(0,n.n)(l.ZP);e.ZP=o},14517:function(t,e,r){"use strict";r.d(e,{H:function(){return o},t:function(){return l}});var n=2e3,l=()=>++n,o=t=>{n=t}},6149:function(t,e,r){"use strict";r.d(e,{BC:function(){return o},g2:function(){return l},yj:function(){return a}}),r("56115"),r("59644");var n=r("80681"),l={to:[String,Object],url:String,replace:Boolean};function o(t){var{to:e,url:r,replace:n,$router:l}=t;e&&l?l[n?"replace":"push"](e):r&&(n?location.replace(r):location.href=r)}function a(){var t=(0,n.FN)().proxy;return()=>o(t)}},96528:function(t,e,r){"use strict";r.d(e,{JO:function(){return o}});var n=r("63112"),l=r("28779"),o=(0,n.n)(l.Z);e.ZP=o},88102:function(t,e,r){"use strict";r.d(e,{Vp:function(){return o}});var n=r("63112"),l=r("8291"),o=(0,n.n)(l.Z);e.ZP=o},8051:function(t,e,r){"use strict";r.d(e,{Cp:function(){return f},T5:function(){return n},WN:function(){return m},_K:function(){return u},a8:function(){return o},dt:function(){return a},e9:function(){return d},k7:function(){return l},mH:function(){return S},pj:function(){return s},r5:function(){return c},xe:function(){return i}}),r("86795");var n="van-hairline",l="".concat(n,"--top"),o="".concat(n,"--left"),a="".concat(n,"--right"),i="".concat(n,"--bottom"),u="".concat(n,"--surround"),c="".concat(n,"--top-bottom"),s="".concat(n,"-unset--top-bottom"),d="van-haptics-feedback",m=Symbol("van-form"),f=500,S=5},78335:function(t,e,r){"use strict";r.d(e,{Ce:function(){return i},J5:function(){return o},Or:function(){return l},SI:function(){return c},SQ:function(){return s},Vg:function(){return n},ir:function(){return a},qM:function(){return u}});var n=null,l=[Number,String],o={type:Boolean,default:!0},a=t=>({type:t,required:!0}),i=()=>({type:Array,default:()=>[]}),u=t=>({type:Number,default:t}),c=t=>({type:l,default:t}),s=t=>({type:String,default:t})},63112:function(t,e,r){"use strict";r.d(e,{n:function(){return l}});var n=r("20358");function l(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"),l=r("62568"),o=r("78335"),a=r("12308"),i=r("20358"),[u,c]=(0,l.do)("badge"),s={dot:Boolean,max:o.Or,tag:(0,o.SQ)("div"),color:String,offset:Array,content:o.Or,showZero:o.J5,position:(0,o.SQ)("top-right")};e.Z=(0,n.aZ)({name:u,props:s,setup(t,e){var{slots:r}=e,l=()=>{if(r.content)return!0;var{content:e,showZero:n}=t;return(0,a.Xq)(e)&&""!==e&&(n||0!==e&&"0"!==e)},o=()=>{var{dot:e,max:n,content:o}=t;if(!e&&l())return r.content?r.content():(0,a.Xq)(n)&&(0,a.kE)(o)&&+o>+n?"".concat(n,"+"):o},u=t=>t.startsWith("-")?t.replace("-",""):"-".concat(t),s=(0,n.Fl)(()=>{var e={background:t.color};if(t.offset){var[n,l]=t.offset,{position:o}=t,[a,c]=o.split("-");r.default?("number"==typeof l?e[a]=(0,i.Nn)("top"===a?l:-l):e[a]="top"===a?(0,i.Nn)(l):u(l),"number"==typeof n?e[c]=(0,i.Nn)("left"===c?n:-n):e[c]="left"===c?(0,i.Nn)(n):u(n)):(e.marginTop=(0,i.Nn)(l),e.marginLeft=(0,i.Nn)(n))}return e}),d=()=>{if(l()||t.dot)return(0,n.Wm)("div",{class:c([t.position,{dot:t.dot,fixed:!!r.default}]),style:s.value},[o()])};return()=>{if(r.default){var{tag:e}=t;return(0,n.Wm)(e,{class:c("wrapper")},{default:()=>[r.default(),d()]})}return d()}}})},54499:function(t,e,r){"use strict";r.d(e,{x_:function(){return d}}),r("82116"),r("17989");var n=r("80681"),l=r("62568"),o=r("78335"),a=r("12308"),i=r("6149"),u=r("96528"),[c,s]=(0,l.do)("cell"),d={tag:(0,o.SQ)("div"),icon:String,size:String,title:o.Or,value:o.Or,label:o.Or,center:Boolean,isLink:Boolean,border:o.J5,iconPrefix:String,valueClass:o.Vg,labelClass:o.Vg,titleClass:o.Vg,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},m=(0,a.l7)({},d,i.g2);e.ZP=(0,n.aZ)({name:c,props:m,setup(t,e){var{slots:r}=e,l=(0,i.yj)(),o=()=>{if(r.label||(0,a.Xq)(t.label))return(0,n.Wm)("div",{class:[s("label"),t.labelClass]},[r.label?r.label():t.label])},c=()=>{if(r.title||(0,a.Xq)(t.title)){var e,l=null===(e=r.title)||void 0===e?void 0:e.call(r);if(!Array.isArray(l)||0!==l.length)return(0,n.Wm)("div",{class:[s("title"),t.titleClass],style:t.titleStyle},[l||(0,n.Wm)("span",null,[t.title]),o()])}},d=()=>{var e=r.value||r.default;if(e||(0,a.Xq)(t.value))return(0,n.Wm)("div",{class:[s("value"),t.valueClass]},[e?e():(0,n.Wm)("span",null,[t.value])])},m=()=>r.icon?r.icon():t.icon?(0,n.Wm)(u.JO,{name:t.icon,class:s("left-icon"),classPrefix:t.iconPrefix},null):void 0,f=()=>{if(r["right-icon"])return r["right-icon"]();if(t.isLink){var e=t.arrowDirection&&"right"!==t.arrowDirection?"arrow-".concat(t.arrowDirection):"arrow";return(0,n.Wm)(u.JO,{name:e,class:s("right-icon")},null)}};return()=>{var e,{tag:o,size:a,center:i,border:u,isLink:S,required:v}=t,p=null!==(e=t.clickable)&&void 0!==e?e:S,g={center:i,required:!!v,clickable:p,borderless:!u};return a&&(g[a]=!!a),(0,n.Wm)(o,{class:s(g),role:p?"button":void 0,tabindex:p?0:void 0,onClick:l},{default:()=>{var t;return[m(),c(),d(),f(),null===(t=r.extra)||void 0===t?void 0:t.call(r)]}})}}})},53419:function(t,e,r){"use strict";r.d(e,{q9:function(){return d}}),r("82116"),r("17989"),r("86795"),r("56115"),r("59644"),r("31564"),r("8649"),r("70629");var n=r("80681"),l=r("62568"),o=r("78335"),a=r("20358"),i=r("12308"),u=r("14517"),[c,s]=(0,l.do)("config-provider"),d=Symbol(c),m={tag:(0,o.SQ)("div"),theme:(0,o.SQ)("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:(0,o.SQ)("local"),iconPrefix:String};function f(){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:c,props:m,setup(t,e){var{slots:r}=e,l=(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 o=()=>{document.documentElement.classList.add("van-theme-".concat(t.theme))},c=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&&c(e),o()},{immediate:!0}),(0,n.dl)(o),(0,n.se)(c),(0,n.Jd)(c),(0,n.YP)(l,(e,r)=>{"global"===t.themeVarsScope&&f(e,r)}),(0,n.YP)(()=>t.themeVarsScope,(t,e)=>{"global"===e&&f({},l.value),"global"===t&&f(l.value,{})}),"global"===t.themeVarsScope&&f(l.value,{})}return(0,n.JJ)(d,t),(0,n.m0)(()=>{void 0!==t.zIndex&&(0,u.H)(t.zIndex)}),()=>(0,n.Wm)(t.tag,{class:s(),style:"local"===t.themeVarsScope?l.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"),l=r("62568"),o=r("78335"),a=r("20358"),i=r("72555"),u=r("53419"),[c,s]=(0,l.do)("icon"),d=t=>null==t?void 0:t.includes("/"),m={dot:Boolean,tag:(0,o.SQ)("i"),name:String,size:o.Or,badge:o.Or,color:String,badgeProps:Object,classPrefix:String};e.Z=(0,n.aZ)({name:c,props:m,setup(t,e){var{slots:r}=e,l=(0,n.f3)(u.q9,null),o=(0,n.Fl)(()=>t.classPrefix||(null==l?void 0:l.iconPrefix)||s());return()=>{var{tag:e,dot:l,name:u,size:c,badge:m,color:f}=t,S=d(u);return(0,n.Wm)(i.Ct,(0,n.dG)({dot:l,tag:e,class:[o.value,S?"":"".concat(o.value,"-").concat(u)],style:{color:f,fontSize:(0,a.Nn)(c)},content:m},t.badgeProps),{default:()=>{var t;return[null===(t=r.default)||void 0===t?void 0:t.call(r),S&&(0,n.Wm)("img",{class:s("image"),src:u},null)]}})}}})},8291:function(t,e,r){"use strict";r("82116"),r("17989");var n=r("80681"),l=r("39594"),o=r("62568"),a=r("78335"),i=r("8051"),u=r("96528"),[c,s]=(0,o.do)("tag"),d={size:String,mark:Boolean,show:a.J5,type:(0,a.SQ)("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};e.Z=(0,n.aZ)({name:c,props:d,emits:["close"],setup(t,e){var{slots:r,emit:o}=e,a=t=>{t.stopPropagation(),o("close",t)},c=()=>t.plain?{color:t.textColor||t.color,borderColor:t.color}:{color:t.textColor,background:t.color},d=()=>{var e,{type:l,mark:o,plain:d,round:m,size:f,closeable:S}=t,v={mark:o,plain:d,round:m};f&&(v[f]=f);var p=S&&(0,n.Wm)(u.JO,{name:"cross",class:[s("close"),i.e9],onClick:a},null);return(0,n.Wm)("span",{style:c(),class:s([v,l])},[null===(e=r.default)||void 0===e?void 0:e.call(r),p])};return()=>(0,n.Wm)(l.uT,{name:t.closeable?"van-fade":void 0},{default:()=>[t.show?d():null]})}})},18430:function(t,e,r){"use strict";r.r(t.exports={})},66693:function(t,e,r){"use strict";r.r(t.exports={})}}]);