mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
/*! For license information please see 5392.0ff0777c.js.LICENSE.txt */
|
|
(self.webpackChunk=self.webpackChunk||[]).push([["5392"],{60617:function(e,t,r){"use strict";r.r(t);var n=r("56135");r("47946");let i=n.Z;t.default=i},56135:function(e,t,r){"use strict";r("61557");var n=r("80681"),i=r("11848"),a=r("19924"),l=r("44616"),o=r("73304"),u=r("99742"),s=r("73934"),c=r("54369");t.Z=(0,n.aZ)({__name:"index",setup(e){var t=(0,c.q)({"zh-CN":{errorInfo:"\u9519\u8BEF\u63D0\u793A",errorText:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u70B9\u51FB\u91CD\u65B0\u52A0\u8F7D",pullRefresh:"\u4E0B\u62C9\u5237\u65B0",finishedText:"\u6CA1\u6709\u66F4\u591A\u4E86"},"en-US":{errorInfo:"Error Info",errorText:"Request failed. Click to reload",pullRefresh:"PullRefresh",finishedText:"Finished"}}),r=(0,i.iH)([{items:[],refreshing:!1,loading:!1,error:!1,finished:!1},{items:[],refreshing:!1,loading:!1,error:!1,finished:!1},{items:[],refreshing:!1,loading:!1,error:!1,finished:!1}]),d=e=>{var t=r.value[e];t.loading=!0,setTimeout(()=>{t.refreshing&&(t.items=[],t.refreshing=!1);for(var r=0;r<10;r++){var n=t.items.length+1;t.items.push(n<10?"0"+n:String(n))}t.loading=!1,t.refreshing=!1,1!==e||10!==t.items.length||t.error?t.error=!1:t.error=!0,t.items.length>=40&&(t.finished=!0)},1e3)},f=e=>{r.value[e].finished=!1,d(e)};return(e,c)=>((0,n.wg)(),(0,n.j4)((0,i.SU)(a.ZP),null,{default:(0,n.w5)(()=>[(0,n.Wm)((0,i.SU)(l.ZP),{title:(0,i.SU)(t)("basicUsage")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,i.SU)(o.ZP),{loading:r.value[0].loading,"onUpdate:loading":c[0]||(c[0]=e=>r.value[0].loading=e),finished:r.value[0].finished,"finished-text":(0,i.SU)(t)("finishedText"),onLoad:c[1]||(c[1]=e=>d(0))},{default:(0,n.w5)(()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(r.value[0].items,e=>((0,n.wg)(),(0,n.j4)((0,i.SU)(u.ZP),{key:e,title:e},null,8,["title"]))),128))]),_:1},8,["loading","finished","finished-text"])]),_:1},8,["title"]),(0,n.Wm)((0,i.SU)(l.ZP),{title:(0,i.SU)(t)("errorInfo")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,i.SU)(o.ZP),{loading:r.value[1].loading,"onUpdate:loading":c[2]||(c[2]=e=>r.value[1].loading=e),error:r.value[1].error,"onUpdate:error":c[3]||(c[3]=e=>r.value[1].error=e),finished:r.value[1].finished,"error-text":(0,i.SU)(t)("errorText"),onLoad:c[4]||(c[4]=e=>d(1))},{default:(0,n.w5)(()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(r.value[1].items,e=>((0,n.wg)(),(0,n.j4)((0,i.SU)(u.ZP),{key:e,title:e},null,8,["title"]))),128))]),_:1},8,["loading","error","finished","error-text"])]),_:1},8,["title"]),(0,n.Wm)((0,i.SU)(l.ZP),{title:(0,i.SU)(t)("pullRefresh")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,i.SU)(s.ZP),{modelValue:r.value[2].refreshing,"onUpdate:modelValue":c[7]||(c[7]=e=>r.value[2].refreshing=e),onRefresh:c[8]||(c[8]=e=>f(2))},{default:(0,n.w5)(()=>[(0,n.Wm)((0,i.SU)(o.ZP),{loading:r.value[2].loading,"onUpdate:loading":c[5]||(c[5]=e=>r.value[2].loading=e),finished:r.value[2].finished,"finished-text":(0,i.SU)(t)("finishedText"),onLoad:c[6]||(c[6]=e=>d(2))},{default:(0,n.w5)(()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(r.value[2].items,e=>((0,n.wg)(),(0,n.j4)((0,i.SU)(u.ZP),{key:e,title:e},null,8,["title"]))),128))]),_:1},8,["loading","finished","finished-text"])]),_:1},8,["modelValue"])]),_:1},8,["title"])]),_:1}))}})},72555:function(e,t,r){"use strict";r.d(t,{Ct:function(){return a}});var n=r("63112"),i=r("63022"),a=(0,n.n)(i.Z);t.ZP=a},99742:function(e,t,r){"use strict";r.d(t,{bL:function(){return a}});var n=r("63112"),i=r("54499"),a=(0,n.n)(i.ZP);t.ZP=a},65170:function(e,t,r){"use strict";r.d(t,{S:function(){return i},h:function(){return a}}),r("86795");var n=r("80681"),i=Symbol();function a(e){var t=(0,n.f3)(i,null);t&&(0,n.YP)(t,t=>{t&&e()})}},10023:function(e,t,r){"use strict";r.d(t,{F:function(){return a}});var n=r("80681"),i=r("12308");function a(e){var t=(0,n.FN)();t&&(0,i.l7)(t.proxy,e)}},14517:function(e,t,r){"use strict";r.d(t,{H:function(){return a},t:function(){return i}});var n=2e3,i=()=>++n,a=e=>{n=e}},29609:function(e,t,r){"use strict";r.d(t,{o:function(){return a}});var n=r("11848"),i=r("8051");function a(){var e=(0,n.iH)(0),t=(0,n.iH)(0),r=(0,n.iH)(0),a=(0,n.iH)(0),l=(0,n.iH)(0),o=(0,n.iH)(0),u=(0,n.iH)(""),s=(0,n.iH)(!0),c=()=>{r.value=0,a.value=0,l.value=0,o.value=0,u.value="",s.value=!0};return{move:n=>{var c,d,f=n.touches[0];r.value=(f.clientX<0?0:f.clientX)-e.value,a.value=f.clientY-t.value,l.value=Math.abs(r.value),o.value=Math.abs(a.value);if(!u.value||l.value<10&&o.value<10){;u.value=(c=l.value,c>(d=o.value)?"horizontal":d>c?"vertical":"")}s.value&&(l.value>i.mH||o.value>i.mH)&&(s.value=!1)},start:r=>{c(),e.value=r.touches[0].clientX,t.value=r.touches[0].clientY},reset:c,startX:e,startY:t,deltaX:r,deltaY:a,offsetX:l,offsetY:o,direction:u,isVertical:()=>"vertical"===u.value,isHorizontal:()=>"horizontal"===u.value,isTap:s}}},96528:function(e,t,r){"use strict";r.d(t,{JO:function(){return a}});var n=r("63112"),i=r("28779"),a=(0,n.n)(i.Z);t.ZP=a},73304:function(e,t,r){"use strict";var n=r("63112"),i=r("47681"),a=(0,n.n)(i.Z);t.ZP=a},95786:function(e,t,r){"use strict";r.d(t,{gb:function(){return a}});var n=r("63112"),i=r("2309"),a=(0,n.n)(i.Z);t.ZP=a},73934:function(e,t,r){"use strict";var n=r("63112"),i=r("74222"),a=(0,n.n)(i.Z);t.ZP=a},8051:function(e,t,r){"use strict";r.d(t,{Cp:function(){return v},T5:function(){return n},WN:function(){return f},_K:function(){return u},a8:function(){return a},dt:function(){return l},e9:function(){return d},k7:function(){return i},mH:function(){return g},pj:function(){return c},r5:function(){return s},xe:function(){return o}}),r("86795");var n="van-hairline",i="".concat(n,"--top"),a="".concat(n,"--left"),l="".concat(n,"--right"),o="".concat(n,"--bottom"),u="".concat(n,"--surround"),s="".concat(n,"--top-bottom"),c="".concat(n,"-unset--top-bottom"),d="van-haptics-feedback",f=Symbol("van-form"),v=500,g=5},55987:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var n=r("12308");function i(e,t){var{args:r=[],done:i,canceled:a,error:l}=t;if(e){var o=e.apply(null,r);(0,n.tI)(o)?o.then(e=>{e?i():a&&a()}).catch(l||n.ZT):o?i():a&&a()}else i()}},78335:function(e,t,r){"use strict";r.d(t,{Ce:function(){return o},J5:function(){return a},Or:function(){return i},SI:function(){return s},SQ:function(){return c},Vg:function(){return n},ir:function(){return l},qM:function(){return u}});var n=null,i=[Number,String],a={type:Boolean,default:!0},l=e=>({type:e,required:!0}),o=()=>({type:Array,default:()=>[]}),u=e=>({type:Number,default:e}),s=e=>({type:i,default:e}),c=e=>({type:String,default:e})},63112:function(e,t,r){"use strict";r.d(t,{n:function(){return i}});var n=r("20358");function i(e){return e.install=t=>{var{name:r}=e;r&&(t.component(r,e),t.component((0,n._A)("-".concat(r)),e))},e}},63022:function(e,t,r){"use strict";r("82116"),r("17989"),r("56115"),r("59644"),r("89176");var n=r("80681"),i=r("62568"),a=r("78335"),l=r("12308"),o=r("20358"),[u,s]=(0,i.do)("badge"),c={dot:Boolean,max:a.Or,tag:(0,a.SQ)("div"),color:String,offset:Array,content:a.Or,showZero:a.J5,position:(0,a.SQ)("top-right")};t.Z=(0,n.aZ)({name:u,props:c,setup(e,t){var{slots:r}=t,i=()=>{if(r.content)return!0;var{content:t,showZero:n}=e;return(0,l.Xq)(t)&&""!==t&&(n||0!==t&&"0"!==t)},a=()=>{var{dot:t,max:n,content:a}=e;if(!t&&i())return r.content?r.content():(0,l.Xq)(n)&&(0,l.kE)(a)&&+a>+n?"".concat(n,"+"):a},u=e=>e.startsWith("-")?e.replace("-",""):"-".concat(e),c=(0,n.Fl)(()=>{var t={background:e.color};if(e.offset){var[n,i]=e.offset,{position:a}=e,[l,s]=a.split("-");r.default?("number"==typeof i?t[l]=(0,o.Nn)("top"===l?i:-i):t[l]="top"===l?(0,o.Nn)(i):u(i),"number"==typeof n?t[s]=(0,o.Nn)("left"===s?n:-n):t[s]="left"===s?(0,o.Nn)(n):u(n)):(t.marginTop=(0,o.Nn)(i),t.marginLeft=(0,o.Nn)(n))}return t}),d=()=>{if(i()||e.dot)return(0,n.Wm)("div",{class:s([e.position,{dot:e.dot,fixed:!!r.default}]),style:c.value},[a()])};return()=>{if(r.default){var{tag:t}=e;return(0,n.Wm)(t,{class:s("wrapper")},{default:()=>[r.default(),d()]})}return d()}}})},54499:function(e,t,r){"use strict";r.d(t,{x_:function(){return d}}),r("82116"),r("17989");var n=r("80681"),i=r("62568"),a=r("78335"),l=r("12308"),o=r("6149"),u=r("96528"),[s,c]=(0,i.do)("cell"),d={tag:(0,a.SQ)("div"),icon:String,size:String,title:a.Or,value:a.Or,label:a.Or,center:Boolean,isLink:Boolean,border:a.J5,iconPrefix:String,valueClass:a.Vg,labelClass:a.Vg,titleClass:a.Vg,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},f=(0,l.l7)({},d,o.g2);t.ZP=(0,n.aZ)({name:s,props:f,setup(e,t){var{slots:r}=t,i=(0,o.yj)(),a=()=>{if(r.label||(0,l.Xq)(e.label))return(0,n.Wm)("div",{class:[c("label"),e.labelClass]},[r.label?r.label():e.label])},s=()=>{if(r.title||(0,l.Xq)(e.title)){var t,i=null===(t=r.title)||void 0===t?void 0:t.call(r);if(!Array.isArray(i)||0!==i.length)return(0,n.Wm)("div",{class:[c("title"),e.titleClass],style:e.titleStyle},[i||(0,n.Wm)("span",null,[e.title]),a()])}},d=()=>{var t=r.value||r.default;if(t||(0,l.Xq)(e.value))return(0,n.Wm)("div",{class:[c("value"),e.valueClass]},[t?t():(0,n.Wm)("span",null,[e.value])])},f=()=>r.icon?r.icon():e.icon?(0,n.Wm)(u.JO,{name:e.icon,class:c("left-icon"),classPrefix:e.iconPrefix},null):void 0,v=()=>{if(r["right-icon"])return r["right-icon"]();if(e.isLink){var t=e.arrowDirection&&"right"!==e.arrowDirection?"arrow-".concat(e.arrowDirection):"arrow";return(0,n.Wm)(u.JO,{name:t,class:c("right-icon")},null)}};return()=>{var t,{tag:a,size:l,center:o,border:u,isLink:g,required:m}=e,h=null!==(t=e.clickable)&&void 0!==t?t:g,p={center:o,required:!!m,clickable:h,borderless:!u};return l&&(p[l]=!!l),(0,n.Wm)(a,{class:c(p),role:h?"button":void 0,tabindex:h?0:void 0,onClick:i},{default:()=>{var e;return[f(),s(),d(),v(),null===(e=r.extra)||void 0===e?void 0:e.call(r)]}})}}})},53419:function(e,t,r){"use strict";r.d(t,{q9:function(){return d}}),r("82116"),r("17989"),r("86795"),r("56115"),r("59644"),r("31564"),r("8649"),r("70629");var n=r("80681"),i=r("62568"),a=r("78335"),l=r("20358"),o=r("12308"),u=r("14517"),[s,c]=(0,i.do)("config-provider"),d=Symbol(s),f={tag:(0,a.SQ)("div"),theme:(0,a.SQ)("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:(0,a.SQ)("local"),iconPrefix:String};function v(){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(r=>{e[r]!==t[r]&&document.documentElement.style.setProperty(r,e[r])}),Object.keys(t).forEach(t=>{!e[t]&&document.documentElement.style.removeProperty(t)})}t.ZP=(0,n.aZ)({name:s,props:f,setup(e,t){var{slots:r}=t,i=(0,n.Fl)(()=>{var t,r;return t=(0,o.l7)({},e.themeVars,"dark"===e.theme?e.themeVarsDark:e.themeVarsLight),r={},Object.keys(t).forEach(e=>{var n=(0,l.GL)(e).replace(/([a-zA-Z])(\d)/g,"$1-$2");r["--van-".concat(n)]=t[e]}),r});if(o._f){var a=()=>{document.documentElement.classList.add("van-theme-".concat(e.theme))},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.theme;document.documentElement.classList.remove("van-theme-".concat(t))};(0,n.YP)(()=>e.theme,(e,t)=>{t&&s(t),a()},{immediate:!0}),(0,n.dl)(a),(0,n.se)(s),(0,n.Jd)(s),(0,n.YP)(i,(t,r)=>{"global"===e.themeVarsScope&&v(t,r)}),(0,n.YP)(()=>e.themeVarsScope,(e,t)=>{"global"===t&&v({},i.value),"global"===e&&v(i.value,{})}),"global"===e.themeVarsScope&&v(i.value,{})}return(0,n.JJ)(d,e),(0,n.m0)(()=>{void 0!==e.zIndex&&(0,u.H)(e.zIndex)}),()=>(0,n.Wm)(e.tag,{class:c(),style:"local"===e.themeVarsScope?i.value:void 0},{default:()=>{var e;return[null===(e=r.default)||void 0===e?void 0:e.call(r)]}})}})},28779:function(e,t,r){"use strict";r("82116"),r("17989"),r("24660");var n=r("80681"),i=r("62568"),a=r("78335"),l=r("20358"),o=r("72555"),u=r("53419"),[s,c]=(0,i.do)("icon"),d=e=>null==e?void 0:e.includes("/"),f={dot:Boolean,tag:(0,a.SQ)("i"),name:String,size:a.Or,badge:a.Or,color:String,badgeProps:Object,classPrefix:String};t.Z=(0,n.aZ)({name:s,props:f,setup(e,t){var{slots:r}=t,i=(0,n.f3)(u.q9,null),a=(0,n.Fl)(()=>e.classPrefix||(null==i?void 0:i.iconPrefix)||c());return()=>{var{tag:t,dot:i,name:u,size:s,badge:f,color:v}=e,g=d(u);return(0,n.Wm)(o.Ct,(0,n.dG)({dot:i,tag:t,class:[a.value,g?"":"".concat(a.value,"-").concat(u)],style:{color:v,fontSize:(0,l.Nn)(s)},content:f},e.badgeProps),{default:()=>{var e;return[null===(e=r.default)||void 0===e?void 0:e.call(r),g&&(0,n.Wm)("img",{class:c("image"),src:u},null)]}})}}})},47681:function(e,t,r){"use strict";r("82116"),r("17989");var n=r("80681"),i=r("11848"),a=r("62568"),l=r("78335"),o=r("82210"),u=r("22300"),s=r("10023"),c=r("41419"),d=r("95786"),[f,v,g]=(0,a.do)("list"),m={error:Boolean,offset:(0,l.SI)(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:(0,l.SQ)("down"),loadingText:String,finishedText:String,immediateCheck:l.J5};t.Z=(0,n.aZ)({name:f,props:m,emits:["load","update:error","update:loading"],setup(e,t){var{emit:r,slots:a}=t,l=(0,i.iH)(e.loading),f=(0,i.iH)(),m=(0,i.iH)(),h=(0,c.d)(),p=(0,u.eo)(f),S=(0,n.Fl)(()=>e.scroller||p.value),b=()=>{(0,n.Y3)(()=>{if(!l.value&&!e.finished&&!e.disabled&&!e.error&&(null==h?void 0:h.value)!==!1){var{direction:t}=e,n=+e.offset,i=(0,u.EL)(S);if(!(!i.height||(0,o.xj)(f))){var a=!1,s=(0,u.EL)(m);(a="up"===t?i.top-s.top<=n:s.bottom-i.bottom<=n)&&(l.value=!0,r("update:loading",!0),r("load"))}}})},x=()=>{if(e.finished){var t=a.finished?a.finished():e.finishedText;if(t)return(0,n.Wm)("div",{class:v("finished-text")},[t])}},y=()=>{r("update:error",!1),b()},Z=()=>{if(e.error){var t=a.error?a.error():e.errorText;if(t)return(0,n.Wm)("div",{role:"button",class:v("error-text"),tabindex:0,onClick:y},[t])}},P=()=>{if(l.value&&!e.finished&&!e.disabled)return(0,n.Wm)("div",{class:v("loading")},[a.loading?a.loading():(0,n.Wm)(d.gb,{class:v("loading-icon")},{default:()=>[e.loadingText||g("loading")]})])};return(0,n.YP)(()=>[e.loading,e.finished,e.error],b),h&&(0,n.YP)(h,e=>{e&&b()}),(0,n.ic)(()=>{l.value=e.loading}),(0,n.bv)(()=>{e.immediateCheck&&b()}),(0,s.F)({check:b}),(0,u.OR)("scroll",b,{target:S,passive:!0}),()=>{var t,r=null===(t=a.default)||void 0===t?void 0:t.call(a),i=(0,n.Wm)("div",{ref:m,class:v("placeholder")},null);return(0,n.Wm)("div",{ref:f,role:"feed",class:v(),"aria-busy":l.value},["down"===e.direction?r:i,P(),x(),Z(),"up"===e.direction?r:i])}}})},2309:function(e,t,r){"use strict";r("82116"),r("17989"),r("66786"),r("14529");var n=r("80681"),i=r("62568"),a=r("78335"),l=r("12308"),o=r("20358"),[u,s]=(0,i.do)("loading"),c=Array(12).fill(null).map((e,t)=>(0,n.Wm)("i",{class:s("line",String(t+1))},null)),d=(0,n.Wm)("svg",{class:s("circular"),viewBox:"25 25 50 50"},[(0,n.Wm)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),f={size:a.Or,type:(0,a.SQ)("circular"),color:String,vertical:Boolean,textSize:a.Or,textColor:String};t.Z=(0,n.aZ)({name:u,props:f,setup(e,t){var{slots:r}=t,i=(0,n.Fl)(()=>(0,l.l7)({color:e.color},(0,o.Xn)(e.size))),a=()=>{var t="spinner"===e.type?c:d;return(0,n.Wm)("span",{class:s("spinner",e.type),style:i.value},[r.icon?r.icon():t])},u=()=>{if(r.default){var t;return(0,n.Wm)("span",{class:s("text"),style:{fontSize:(0,o.Nn)(e.textSize),color:null!==(t=e.textColor)&&void 0!==t?t:e.color}},[r.default()])}};return()=>{var{type:t,vertical:r}=e;return(0,n.Wm)("div",{class:s([t,{vertical:r}]),"aria-live":"polite","aria-busy":!0},[a(),u()])}}})},74222:function(e,t,r){"use strict";r("82116"),r("17989"),r("24660"),r("61557");var n=r("80681"),i=r("11848"),a=r("62568"),l=r("78335"),o=r("82210"),u=r("22300"),s=r("29609"),c=r("95786"),[d,f,v]=(0,a.do)("pull-refresh"),g=["pulling","loosing","success"],m={disabled:Boolean,modelValue:Boolean,headHeight:(0,l.SI)(50),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:l.Or,successDuration:(0,l.SI)(500),animationDuration:(0,l.SI)(300)};t.Z=(0,n.aZ)({name:d,props:m,emits:["change","refresh","update:modelValue"],setup(e,t){var r,{emit:a,slots:l}=t,d=(0,i.iH)(),m=(0,i.iH)(),h=(0,u.eo)(d),p=(0,i.qj)({status:"normal",distance:0,duration:0}),S=(0,s.o)(),b=()=>{if(50!==e.headHeight)return{height:"".concat(e.headHeight,"px")}},x=()=>"loading"!==p.status&&"success"!==p.status&&!e.disabled,y=t=>{var r=+(e.pullDistance||e.headHeight);return t>r&&(t=t<2*r?r+(t-r)/2:1.5*r+(t-2*r)/4),Math.round(t)},Z=(t,r)=>{var n=+(e.pullDistance||e.headHeight);p.distance=t,r?p.status="loading":0===t?p.status="normal":t<n?p.status="pulling":p.status="loosing",a("change",{status:p.status,distance:t})},P=()=>{var{status:t}=p;return"normal"===t?"":e["".concat(t,"Text")]||v(t)},W=()=>{var{status:e,distance:t}=p;if(l[e])return l[e]({distance:t});var r=[];return g.includes(e)&&r.push((0,n.Wm)("div",{class:f("text")},[P()])),"loading"===e&&r.push((0,n.Wm)(c.gb,{class:f("loading")},{default:P})),r},H=()=>{p.status="success",setTimeout(()=>{Z(0)},+e.successDuration)},w=e=>{(r=0===(0,o.cx)(h.value))&&(p.duration=0,S.start(e))},k=e=>{x()&&w(e)},T=()=>{r&&S.deltaY.value&&x()&&(p.duration=+e.animationDuration,"loosing"===p.status?(Z(+e.headHeight,!0),a("update:modelValue",!0),(0,n.Y3)(()=>a("refresh"))):Z(0))};return(0,n.YP)(()=>e.modelValue,t=>{p.duration=+e.animationDuration,t?Z(+e.headHeight,!0):l.success||e.successText?H():Z(0,!1)}),(0,u.OR)("touchmove",e=>{if(x()){!r&&w(e);var{deltaY:t}=S;S.move(e),r&&t.value>=0&&S.isVertical()&&((0,o.PF)(e),Z(y(t.value)))}},{target:m}),()=>{var e,t={transitionDuration:"".concat(p.duration,"ms"),transform:p.distance?"translate3d(0,".concat(p.distance,"px, 0)"):""};return(0,n.Wm)("div",{ref:d,class:f()},[(0,n.Wm)("div",{ref:m,class:f("track"),style:t,onTouchstartPassive:k,onTouchend:T,onTouchcancel:T},[(0,n.Wm)("div",{class:f("head"),style:b()},[W()]),null===(e=l.default)||void 0===e?void 0:e.call(l)])])}}})},47946:function(e,t,r){"use strict";r.r(e.exports={})},27679:function(e,t,r){"use strict";r.r(e.exports={})}}]); |