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

2 lines
9.7 KiB
JavaScript

/*! For license information please see 4100.42b9cf9f.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([["4100"],{6304:function(t,e,n){"use strict";n.r(e);var r=n("52914");n("6151");let i=r.Z;e.default=i},52914:function(t,e,n){"use strict";var r=n("80681"),i=n("11848"),l=n("57122"),a=n("39594"),o=n("99742"),u=n("54369"),c={class:"van-ellipsis"},s={class:"van-multi-ellipsis--l2"},d=(0,r._)("div",{class:"van-hairline--top"},null,-1),f={class:"demo-animate-block"};e.Z=(0,r.aZ)({__name:"index",setup(t){var e=(0,u.q)({"zh-CN":{hairline:"1px \u8FB9\u6846",ellipsis:"\u6587\u5B57\u7701\u7565",animation:"\u52A8\u753B",toggle:"\u5207\u6362\u52A8\u753B",text1:"\u8FD9\u662F\u4E00\u6BB5\u6700\u591A\u663E\u793A\u4E00\u884C\u7684\u6587\u5B57\uFF0C\u540E\u9762\u7684\u5185\u5BB9\u4F1A\u7701\u7565",text2:"\u8FD9\u662F\u4E00\u6BB5\u6700\u591A\u663E\u793A\u4E24\u884C\u7684\u6587\u5B57\uFF0C\u540E\u9762\u7684\u5185\u5BB9\u4F1A\u7701\u7565\u3002\u8FD9\u662F\u4E00\u6BB5\u6700\u591A\u663E\u793A\u4E24\u884C\u7684\u6587\u5B57\uFF0C\u540E\u9762\u7684\u5185\u5BB9\u4F1A\u7701\u7565"},"en-US":{hairline:"Hairline",ellipsis:"Text Ellipsis",animation:"Animation",toggle:"Switch animation",text1:"This is a paragraph that displays up to one line of text, and the rest of the text will be omitted.",text2:"This is a paragraph that displays up to two lines of text, and the rest of the text will be omitted."}}),n=(0,i.iH)(!1),v=(0,i.iH)(""),m=t=>{n.value=!0,v.value=t,setTimeout(()=>{n.value=!1},500)};return(t,u)=>{var p=(0,r.up)("demo-block");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(p,{title:(0,i.SU)(e)("ellipsis")},{default:(0,r.w5)(()=>[(0,r._)("div",c,(0,l.zw)((0,i.SU)(e)("text1")),1),(0,r._)("div",s,(0,l.zw)((0,i.SU)(e)("text2")),1)]),_:1},8,["title"]),(0,r.Wm)(p,{card:"",title:(0,i.SU)(e)("hairline")},{default:(0,r.w5)(()=>[d]),_:1},8,["title"]),(0,r.Wm)(p,{card:"",title:(0,i.SU)(e)("animation")},{default:(0,r.w5)(()=>[(0,r.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:"Fade",onClick:u[0]||(u[0]=t=>m("van-fade"))}),(0,r.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:"Slide Up",onClick:u[1]||(u[1]=t=>m("van-slide-up"))}),(0,r.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:"Slide Down",onClick:u[2]||(u[2]=t=>m("van-slide-down"))}),(0,r.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:"Slide Left",onClick:u[3]||(u[3]=t=>m("van-slide-left"))}),(0,r.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:"Slide Right",onClick:u[4]||(u[4]=t=>m("van-slide-right"))})]),_:1},8,["title"]),(0,r.Wm)(a.uT,{name:v.value},{default:(0,r.w5)(()=>[(0,r.wy)((0,r._)("div",f,null,512),[[a.F8,n.value]])]),_:1},8,["name"])],64)}}})},72555:function(t,e,n){"use strict";n.d(e,{Ct:function(){return l}});var r=n("63112"),i=n("63022"),l=(0,r.n)(i.Z);e.ZP=l},99742:function(t,e,n){"use strict";n.d(e,{bL:function(){return l}});var r=n("63112"),i=n("54499"),l=(0,r.n)(i.ZP);e.ZP=l},14517:function(t,e,n){"use strict";n.d(e,{H:function(){return l},t:function(){return i}});var r=2e3,i=()=>++r,l=t=>{r=t}},6149:function(t,e,n){"use strict";n.d(e,{BC:function(){return l},g2:function(){return i},yj:function(){return a}}),n("56115"),n("59644");var r=n("80681"),i={to:[String,Object],url:String,replace:Boolean};function l(t){var{to:e,url:n,replace:r,$router:i}=t;e&&i?i[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}function a(){var t=(0,r.FN)().proxy;return()=>l(t)}},96528:function(t,e,n){"use strict";n.d(e,{JO:function(){return l}});var r=n("63112"),i=n("28779"),l=(0,r.n)(i.Z);e.ZP=l},78335:function(t,e,n){"use strict";n.d(e,{Ce:function(){return o},J5:function(){return l},Or:function(){return i},SI:function(){return c},SQ:function(){return s},Vg:function(){return r},ir:function(){return a},qM:function(){return u}});var r=null,i=[Number,String],l={type:Boolean,default:!0},a=t=>({type:t,required:!0}),o=()=>({type:Array,default:()=>[]}),u=t=>({type:Number,default:t}),c=t=>({type:i,default:t}),s=t=>({type:String,default:t})},63112:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});var r=n("20358");function i(t){return t.install=e=>{var{name:n}=t;n&&(e.component(n,t),e.component((0,r._A)("-".concat(n)),t))},t}},63022:function(t,e,n){"use strict";n("82116"),n("17989"),n("56115"),n("59644"),n("89176");var r=n("80681"),i=n("62568"),l=n("78335"),a=n("12308"),o=n("20358"),[u,c]=(0,i.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,r.aZ)({name:u,props:s,setup(t,e){var{slots:n}=e,i=()=>{if(n.content)return!0;var{content:e,showZero:r}=t;return(0,a.Xq)(e)&&""!==e&&(r||0!==e&&"0"!==e)},l=()=>{var{dot:e,max:r,content:l}=t;if(!e&&i())return n.content?n.content():(0,a.Xq)(r)&&(0,a.kE)(l)&&+l>+r?"".concat(r,"+"):l},u=t=>t.startsWith("-")?t.replace("-",""):"-".concat(t),s=(0,r.Fl)(()=>{var e={background:t.color};if(t.offset){var[r,i]=t.offset,{position:l}=t,[a,c]=l.split("-");n.default?("number"==typeof i?e[a]=(0,o.Nn)("top"===a?i:-i):e[a]="top"===a?(0,o.Nn)(i):u(i),"number"==typeof r?e[c]=(0,o.Nn)("left"===c?r:-r):e[c]="left"===c?(0,o.Nn)(r):u(r)):(e.marginTop=(0,o.Nn)(i),e.marginLeft=(0,o.Nn)(r))}return e}),d=()=>{if(i()||t.dot)return(0,r.Wm)("div",{class:c([t.position,{dot:t.dot,fixed:!!n.default}]),style:s.value},[l()])};return()=>{if(n.default){var{tag:e}=t;return(0,r.Wm)(e,{class:c("wrapper")},{default:()=>[n.default(),d()]})}return d()}}})},54499:function(t,e,n){"use strict";n.d(e,{x_:function(){return d}}),n("82116"),n("17989");var r=n("80681"),i=n("62568"),l=n("78335"),a=n("12308"),o=n("6149"),u=n("96528"),[c,s]=(0,i.do)("cell"),d={tag:(0,l.SQ)("div"),icon:String,size:String,title:l.Or,value:l.Or,label:l.Or,center:Boolean,isLink:Boolean,border:l.J5,iconPrefix:String,valueClass:l.Vg,labelClass:l.Vg,titleClass:l.Vg,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},f=(0,a.l7)({},d,o.g2);e.ZP=(0,r.aZ)({name:c,props:f,setup(t,e){var{slots:n}=e,i=(0,o.yj)(),l=()=>{if(n.label||(0,a.Xq)(t.label))return(0,r.Wm)("div",{class:[s("label"),t.labelClass]},[n.label?n.label():t.label])},c=()=>{if(n.title||(0,a.Xq)(t.title)){var e,i=null===(e=n.title)||void 0===e?void 0:e.call(n);if(!Array.isArray(i)||0!==i.length)return(0,r.Wm)("div",{class:[s("title"),t.titleClass],style:t.titleStyle},[i||(0,r.Wm)("span",null,[t.title]),l()])}},d=()=>{var e=n.value||n.default;if(e||(0,a.Xq)(t.value))return(0,r.Wm)("div",{class:[s("value"),t.valueClass]},[e?e():(0,r.Wm)("span",null,[t.value])])},f=()=>n.icon?n.icon():t.icon?(0,r.Wm)(u.JO,{name:t.icon,class:s("left-icon"),classPrefix:t.iconPrefix},null):void 0,v=()=>{if(n["right-icon"])return n["right-icon"]();if(t.isLink){var e=t.arrowDirection&&"right"!==t.arrowDirection?"arrow-".concat(t.arrowDirection):"arrow";return(0,r.Wm)(u.JO,{name:e,class:s("right-icon")},null)}};return()=>{var e,{tag:l,size:a,center:o,border:u,isLink:m,required:p}=t,g=null!==(e=t.clickable)&&void 0!==e?e:m,h={center:o,required:!!p,clickable:g,borderless:!u};return a&&(h[a]=!!a),(0,r.Wm)(l,{class:s(h),role:g?"button":void 0,tabindex:g?0:void 0,onClick:i},{default:()=>{var t;return[f(),c(),d(),v(),null===(t=n.extra)||void 0===t?void 0:t.call(n)]}})}}})},53419:function(t,e,n){"use strict";n.d(e,{q9:function(){return d}}),n("82116"),n("17989"),n("86795"),n("56115"),n("59644"),n("31564"),n("8649"),n("70629");var r=n("80681"),i=n("62568"),l=n("78335"),a=n("20358"),o=n("12308"),u=n("14517"),[c,s]=(0,i.do)("config-provider"),d=Symbol(c),f={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 v(){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(n=>{t[n]!==e[n]&&document.documentElement.style.setProperty(n,t[n])}),Object.keys(e).forEach(e=>{!t[e]&&document.documentElement.style.removeProperty(e)})}e.ZP=(0,r.aZ)({name:c,props:f,setup(t,e){var{slots:n}=e,i=(0,r.Fl)(()=>{var e,n;return e=(0,o.l7)({},t.themeVars,"dark"===t.theme?t.themeVarsDark:t.themeVarsLight),n={},Object.keys(e).forEach(t=>{var r=(0,a.GL)(t).replace(/([a-zA-Z])(\d)/g,"$1-$2");n["--van-".concat(r)]=e[t]}),n});if(o._f){var l=()=>{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,r.YP)(()=>t.theme,(t,e)=>{e&&c(e),l()},{immediate:!0}),(0,r.dl)(l),(0,r.se)(c),(0,r.Jd)(c),(0,r.YP)(i,(e,n)=>{"global"===t.themeVarsScope&&v(e,n)}),(0,r.YP)(()=>t.themeVarsScope,(t,e)=>{"global"===e&&v({},i.value),"global"===t&&v(i.value,{})}),"global"===t.themeVarsScope&&v(i.value,{})}return(0,r.JJ)(d,t),(0,r.m0)(()=>{void 0!==t.zIndex&&(0,u.H)(t.zIndex)}),()=>(0,r.Wm)(t.tag,{class:s(),style:"local"===t.themeVarsScope?i.value:void 0},{default:()=>{var t;return[null===(t=n.default)||void 0===t?void 0:t.call(n)]}})}})},28779:function(t,e,n){"use strict";n("82116"),n("17989"),n("24660");var r=n("80681"),i=n("62568"),l=n("78335"),a=n("20358"),o=n("72555"),u=n("53419"),[c,s]=(0,i.do)("icon"),d=t=>null==t?void 0:t.includes("/"),f={dot:Boolean,tag:(0,l.SQ)("i"),name:String,size:l.Or,badge:l.Or,color:String,badgeProps:Object,classPrefix:String};e.Z=(0,r.aZ)({name:c,props:f,setup(t,e){var{slots:n}=e,i=(0,r.f3)(u.q9,null),l=(0,r.Fl)(()=>t.classPrefix||(null==i?void 0:i.iconPrefix)||s());return()=>{var{tag:e,dot:i,name:u,size:c,badge:f,color:v}=t,m=d(u);return(0,r.Wm)(o.Ct,(0,r.dG)({dot:i,tag:e,class:[l.value,m?"":"".concat(l.value,"-").concat(u)],style:{color:v,fontSize:(0,a.Nn)(c)},content:f},t.badgeProps),{default:()=>{var t;return[null===(t=n.default)||void 0===t?void 0:t.call(n),m&&(0,r.Wm)("img",{class:s("image"),src:u},null)]}})}}})},6151:function(t,e,n){"use strict";n.r(t.exports={})},67402:function(t,e,n){"use strict";n.r(t.exports={})}}]);