PageSourceSearch

https://www.mtcxx.com/build/assets/mescroll-DhZBE6H8.js

js mtcxx.com collected 2026-10-03 00:56:53 UTC 19,730 bytes, 1 lines download raw bytes

1import{O as g,o as y,d as D,a as S,m as T}from"./app-BXvF3HYt.js";import{_ as U}from"./_plugin-vue_export-helper-DlAUqK2U.js";var v={exports:{}};(function(d){(function(l,t){d.exports?d.exports=t():this[l]=t()})("MeScroll",function(){var l=function(t,o){var e=this;if(e.version="1.4.2",e.isScrollBody=!0,e.scrollDom=e.isScrollBody?document.body:e.getDomById(t),!!e.scrollDom){e.options=o||{};var s=navigator.userAgent,n=!!s.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),r=typeof window.orientation>"u",i=s.indexOf("Android")>-1||s.indexOf("Adr")>-1,p=s.toLowerCase().match(/MicroMessenger/i)=="micromessenger";e.os={ios:n,pc:r,android:i,wx:p},e.isDownScrolling=!1,e.isUpScrolling=!1;var a=e.options.down&&e.options.down.callback;e.initDownScroll(),e.initUpScroll(),setTimeout(function(){e.optDown.use&&e.optDown.auto&&a&&(e.optDown.autoShowLoading?e.triggerDownScroll():e.optDown.callback&&e.optDown.callback(e)),e.optUp.use&&e.optUp.auto&&!e.isUpAutoLoad&&e.triggerUpScroll()},30)}};return l.prototype.extendDownScroll=function(t){l.extend(t,{use:!0,auto:!0,autoShowLoading:!1,isLock:!1,isBoth:!1,offset:80,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,hardwareClass:"mescroll-hardware",mustToTop:!1,warpId:null,warpClass:"mescroll-downwarp",resetClass:"mescroll-downwarp-reset",textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",htmlContent:'<p class="downwarp-progress"></p><p class="downwarp-tip"></p>',inited:function(o,e){o.downTipDom=e.getElementsByClassName("downwarp-tip")[0],o.downProgressDom=e.getElementsByClassName("downwarp-progress")[0]},inOffset:function(o){o.downTipDom&&(o.downTipDom.innerHTML=o.optDown.textInOffset),o.downProgressDom&&o.downProgressDom.classList.remove("mescroll-rotate")},outOffset:function(o){o.downTipDom&&(o.downTipDom.innerHTML=o.optDown.textOutOffset)},onMoving:function(o,e,s){if(o.downProgressDom){var n=360*e;o.downProgressDom.style.webkitTransform="rotate("+n+"deg)",o.downProgressDom.style.transform="rotate("+n+"deg)"}},beforeLoading:function(o,e){return!1},showLoading:function(o){o.downTipDom&&(o.downTipDom.innerHTML=o.optDown.textLoading),o.downProgressDom&&o.downProgressDom.classList.add("mescroll-rotate")},afterLoading:function(o){return 0},callback:function(o){o.resetUpScroll()}})},l.prototype.extendUpScroll=function(t){var o=this.os.pc;l.extend(t,{use:!0,auto:!0,isLock:!1,isBoth:!1,isBounce:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:100,toTop:{warpId:null,src:null,html:null,offset:1e3,warpClass:"mescroll-totop",showClass:"mescroll-fade-in",hideClass:"mescroll-fade-out",fadeDuration:.5,duration:300,supportTap:!1,btnClick:null},loadFull:{use:!1,delay:500},empty:{warpId:null,customId:null,icon:null,tip:"~ 空空如也 ~",btntext:"",btnClick:null,supportTap:!1},clearId:null,clearEmptyId:null,hardwareClass:"mescroll-hardware",warpId:null,warpClass:"mescroll-upwarp",htmlLoading:'<p class="upwarp-progress mescroll-rotate"></p><p class="upwarp-tip">加载中..</p>',htmlNodata:'<p class="upwarp-nodata">-- END --</p>',inited:function(e,s){},showLoading:function(e,s){s.innerHTML=e.optUp.htmlLoading},showNoMore:function(e,s){s.innerHTML=e.optUp.htmlNodata},onScroll:null,scrollbar:{use:o,barClass:"mescroll-bar"},lazyLoad:{use:!1,attr:"imgurl",showClass:"mescroll-lazy-in",delay:500,offset:200}})},l.extend=function(t,o){if(!t)return o;for(var e in o)t[e]==null?t[e]=o[e]:typeof t[e]=="object"&&l.extend(t[e],o[e]);return t},l.prototype.initDownScroll=function(){var t=this;if(t.optDown=t.options.down||{},t.extendDownScroll(t.optDown),t.touchstartEvent=function(e){t.isScrollTo&&t.preventDefault(e),t.startPoint=t.getPoint(e),t.lastPoint=t.startPoint,t.maxTouchmoveY=t.getBodyHeight()-t.optDown.bottomOffset,t.inTouchend=!1;var s=t.getScrollTop();t.isKeepTop=s===0,t.os.pc&&s<=0&&(t.scrollDom.addEventListener("mousemove",t.touchmoveEvent,{passive:!1}),document.ondragstart=function(){return!1})},t.scrollDom.addEventListener("mousedown",t.touchstartEvent),t.scrollDom.addEventListener("touchstart",t.touchstartEvent),t.touchmoveEvent=function(e){if(t.startPoint){var s=t.getScrollTop();s>0&&(t.isKeepTop=!1);var n=t.getPoint(e),r=n.y-t.startPoint.y;if(r>0){if(s<=0&&(t.preventDefault(e),t.optDown.use&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isU
1pScrolling||t.isUpScrolling&&t.optUp.isBoth))){if(t.optDown.mustToTop&&!t.isKeepTop)return;var i=Math.abs(t.lastPoint.x-n.x),p=Math.abs(t.lastPoint.y-n.y),a=Math.sqrt(i*i+p*p);if(a!==0){var c=Math.asin(p/a)/Math.PI*180;if(c<t.optDown.minAngle)return}if(t.maxTouchmoveY>0&&n.y>=t.maxTouchmoveY){t.inTouchend=!0,t.touchendEvent();return}var u=n.y-t.lastPoint.y;t.downHight||(t.downHight=0),t.downHight<t.optDown.offset?(t.movetype!==1&&(t.movetype=1,t.optDown.inOffset(t),t.downwarp.classList.remove(t.optDown.resetClass),t.isMoveDown=!0,t.os.ios&&!t.isKeepTop&&(t.scrollDom.classList.add(t.optDown.hardwareClass),t.scrollDom.style.webkitOverflowScrolling="auto",t.isSetScrollAuto=!0)),t.downHight+=u*t.optDown.inOffsetRate):(t.movetype!==2&&(t.movetype=2,t.optDown.outOffset(t),t.downwarp.classList.remove(t.optDown.resetClass),t.isMoveDown=!0,t.os.ios&&!t.isKeepTop&&(t.scrollDom.classList.add(t.optDown.hardwareClass),t.scrollDom.style.webkitOverflowScrolling="auto",t.isSetScrollAuto=!0)),u>0?t.downHight+=u*t.optDown.outOffsetRate:t.downHight+=u),t.downwarp.style.height=t.downHight+"px";var f=t.downHight/t.optDown.offset;t.optDown.onMoving(t,f,t.downHight)}}else if(r<0){var h=t.getScrollHeight(),m=t.getClientHeight(),w=h-m-s;!t.optUp.isBounce&&w<=0&&t.preventDefault(e),t.optUp.use&&!t.optUp.isLock&&t.optUp.hasNext&&!t.isUpScrolling&&(!t.isDownScrolling||t.isDownScrolling&&t.optDown.isBoth)&&(m+t.optUp.offset>=h||w<=0)&&t.triggerUpScroll()}t.lastPoint=n}},t.scrollDom.addEventListener("touchmove",t.touchmoveEvent,{passive:!1}),t.touchendEvent=function(){t.optDown.use&&t.isMoveDown&&(t.downHight>=t.optDown.offset?t.triggerDownScroll():(t.downwarp.classList.add(t.optDown.resetClass),t.downHight=0,t.downwarp.style.height=0),t.isSetScrollAuto&&(t.scrollDom.style.webkitOverflowScrolling="touch",t.scrollDom.classList.remove(t.optDown.hardwareClass),t.isSetScrollAuto=!1),t.movetype=0,t.isMoveDown=!1),t.os.pc&&(t.scrollDom.removeEventListener("mousemove",t.touchmoveEvent),document.ondragstart=function(){return!0})},t.scrollDom.addEventListener("mouseup",t.touchendEvent),t.scrollDom.addEventListener("mouseleave",t.touchendEvent),t.scrollDom.addEventListener("touchend",t.touchendEvent),t.scrollDom.addEventListener("touchcancel",t.touchendEvent),t.optDown.use){t.downwarp=document.createElement("div"),t.downwarp.className=t.optDown.warpClass,t.downwarp.innerHTML='<div class="downwarp-content">'+t.optDown.htmlContent+"</div>";var o=t.optDown.warpId?t.getDomById(t.optDown.warpId):t.scrollDom;t.optDown.warpId&&o?o.appendChild(t.downwarp):(o||(o=t.scrollDom),o.insertBefore(t.downwarp,t.scrollDom.firstChild)),setTimeout(function(){t.optDown.inited(t,t.downwarp)},0)}},l.prototype.preventDefault=function(t){t&&t.cancelable&&!t.defaultPrevented&&t.preventDefault()},l.prototype.getPoint=function(t){return{x:t.touches?t.touches[0].pageX:t.clientX,y:t.touches?t.touches[0].pageY:t.clientY}},l.prototype.triggerDownScroll=function(){this.optDown.beforeLoading(this,this.downwarp)||(this.showDownScroll(),this.optDown.callback&&this.optDown.callback(this))},l.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.showLoading(this),this.downHight=this.optDown.offset,this.downwarp.classList.add(this.optDown.resetClass),this.downwarp.style.height=this.optDown.offset+"px"},l.prototype.endDownScroll=function(){var t=this,o=function(){t.downHight=0,t.downwarp.style.height=0,t.isDownScrolling=!1,t.downProgressDom&&t.downProgressDom.classList.remove("mescroll-rotate")},e=t.optDown.afterLoading(t);typeof e=="number"&&e>0?setTimeout(o,e):o()},l.prototype.lockDownScroll=function(t){t==null&&(t=!0),this.optDown.isLock=t},l.prototype.initUpScroll=function(){var t=this;if(t.optUp=t.options.up||{use:!1},t.extendUpScroll(t.optUp),t.optUp.scrollbar.use&&t.scrollDom.classList.add(t.optUp.scrollbar.barClass),t.optUp.isBounce||t.setBounce(!1),t.optUp.use!==!1){t.optUp.hasNext=!0,t.upwarp=document.createElement("div"),t.upwarp.className=t.optUp.warpClass;var o;t.optUp.warpId&&(o=t.getDomById(t.optUp.warpId)),o||(o=t.scrollDom),o.appendChild(t.upwarp),t.preScrollY=0,t.lazyStartTime=new Date().getTime(),t.lazyTag="mescroll-lazying",t.scrollEvent=function(){var e=t.getScrollTop(),s=e-t.preScrollY>0;if(t.preScrollY=e,!t.isUpScrolling&&(!t.isDownScrolling||t.isDownScrolling&&t.optDown.isBoth)&&!t.optUp.isLock&&t.optUp.hasNext){var n=t.getScrollHeight()-t.getClientHeight()-e;n<=t.optUp.offset&&s&&t.triggerUpScroll()}
1var r=t.optUp.toTop;if((r.src||r.html)&&(e>=r.offset?t.showTopBtn():t.hideTopBtn()),t.optUp.lazyLoad.use){var i=new Date().getTime();t.lazyTimer&&clearTimeout(t.lazyTimer),i-t.lazyStartTime>=t.optUp.lazyLoad.delay?(t.lazyStartTime=i,t.lazyLoad(0)):t.lazyTimer=t.lazyLoad()}t.optUp.onScroll&&t.optUp.onScroll(t,e,s)},t.isScrollBody?window.addEventListener("scroll",t.scrollEvent):t.scrollDom.addEventListener("scroll",t.scrollEvent),setTimeout(function(){t.optUp.inited(t,t.upwarp)},0)}},l.prototype.setBounce=function(t){this.isScrollBody||!this.os.ios||(t===!1?(this.optUp.isBounce=!1,window.addEventListener("touchmove",this.bounceTouchmove,{passive:!1})):(this.optUp.isBounce=!0,window.removeEventListener("touchmove",this.bounceTouchmove)))},l.prototype.bounceTouchmove=function(t){for(var o=this,e=t.target,s=!0;e!==document.body&&e!==document;){var n=e.classList;if(n){if(n.contains("mescroll")||n.contains("mescroll-touch")){s=!1;break}else if(n.contains("mescroll-touch-x")||n.contains("mescroll-touch-y")){var r=t.touches?t.touches[0].pageX:t.clientX,i=t.touches?t.touches[0].pageY:t.clientY;o.preWinX||(o.preWinX=r),o.preWinY||(o.preWinY=i);var p=Math.abs(o.preWinX-r),a=Math.abs(o.preWinY-i),c=Math.sqrt(p*p+a*a);if(o.preWinX=r,o.preWinY=i,c!==0){var u=Math.asin(a/c)/Math.PI*180;if(u<=45&&n.contains("mescroll-touch-x")||u>45&&n.contains("mescroll-touch-y")){s=!1;break}}}}e=e.parentNode}s&&t.cancelable&&!t.defaultPrevented&&typeof t.preventDefault=="function"&&t.preventDefault()},l.prototype.triggerUpScroll=function(){this.optUp.callback&&!this.isUpScrolling&&(this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.optUp.callback(this.optUp.page,this))},l.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.upwarp.classList.add(this.optUp.hardwareClass),this.upwarp.style.visibility="visible",this.upwarp.style.display="block",this.optUp.showLoading(this,this.upwarp)},l.prototype.showNoMore=function(){this.upwarp.style.visibility="visible",this.upwarp.style.display="block",this.optUp.hasNext=!1,this.optUp.showNoMore(this,this.upwarp)},l.prototype.hideUpScroll=function(t){t?this.upwarp.style.display="none":this.upwarp.style.visibility="hidden",this.upwarp.classList.remove(this.optUp.hardwareClass);var o=this.upwarp.getElementsByClassName("upwarp-progress")[0];o&&o.classList.remove("mescroll-rotate")},l.prototype.endUpScroll=function(t,o){t!=null&&(t?this.showNoMore():this.hideUpScroll(o)),this.isUpScrolling=!1},l.prototype.resetUpScroll=function(t){if(this.optUp&&this.optUp.use){var o=this.optUp.page;this.prePageNum=o.num,this.prePageTime=o.time,o.num=1,o.time=null,!this.isDownScrolling&&t!==!1&&(t==null?(this.removeEmpty(),this.clearDataList(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.optUp.callback&&this.optUp.callback(o,this)}},l.prototype.setPageNum=function(t){this.optUp.page.num=t-1},l.prototype.setPageSize=function(t){this.optUp.page.size=t},l.prototype.clearDataList=function(){var t=this.optUp.clearId||this.optUp.clearEmptyId;if(t){var o=this.getDomById(t);o&&(o.innerHTML="")}},l.prototype.endByPage=function(t,o,e){var s;this.optUp.use&&o!=null&&(s=this.optUp.page.num<o),this.endSuccess(t,s,e)},l.prototype.endBySize=function(t,o,e){var s;if(this.optUp.use&&o!=null){var n=(this.optUp.page.num-1)*this.optUp.page.size+t;s=n<o}this.endSuccess(t,s,e)},l.prototype.endSuccess=function(t,o,e){var s=this;if(s.isDownScrolling&&s.endDownScroll(),s.optUp.use){var n;if(t!=null){var r=s.optUp.page.num,i=s.optUp.page.size;if(r===1&&(s.clearDataList(),e&&(s.optUp.page.time=e)),t<i||o===!1)if(s.optUp.hasNext=!1,t===0&&r===1)n=!1,s.showEmpty();else{var p=(r-1)*i+t;p<s.optUp.noMoreSize?n=!1:n=!0,s.removeEmpty()}else n=!1,s.optUp.hasNext=!0,s.removeEmpty()}var a=!s.optUp.hasNext;s.endUpScroll(n,a),s.loadFull(),s.optUp.lazyLoad.use&&s.lazyLoad(20)}},l.prototype.endErr=function(){if(this.isDownScrolling){var t=this.optUp.page;t&&this.prePageNum&&(t.num=this.prePageNum,t.time=this.prePageTime),this.endDownScroll()}this.isUpScrolling&&(this.optUp.page.num--,this.endUpScroll(!1))},l.prototype.loadFull=function(){var t=this;t.optUp.loadFull.use&&!t.optUp.isLock&&t.optUp.hasNext&&t.optUp.callback&&t.getScrollHeight()<=t.getClientHeight()&&setTimeout(function(){t.getScrollHeight()<=t.getClientHeight()&&t.triggerUpScroll()},t.optUp.loadFull.delay)},l.prototype.lockUpScroll=function(t){t==null&&(t=!0),this.optUp.isLock=t},l.prototype.showEmpty=function(){var t=this,o=t.optUp.empty;if(o.customId&&(t.emptyDom=t.getDomById(o.customId),t.emptyDom)){t.emptyDom.style.display="block";return}var e=o.warpId||t.optUp.clearEmptyId;if(e!=null){var s=t.getDomById(e);if(s){t.removeEmpty();var n="";if(o.icon&&(n+='<img class="empty-icon" src="'+o.icon+'"/>'),o.tip&&(n+='<p class="empty-tip">'+o.tip+"</p>"),o.btntext&&(n+='<p class="empty-btn">'+o.btntext+"</p>"),t.emptyDom=document.createElement("div"),t.emptyDom.className="mescroll-empty",t.emptyDom.innerHTML=n,s.appendChild(t.emptyDom),o.btnClick){var r=t.emptyDom.getElementsByClassName("empty-btn")[0];o.supportTap?r.addEventListener("tap",function(i){i.stopPropagation(),t.preventDefault(i),o.btnClick()}):r.onclick=function(){o.btnClick()}}}}},l.prototype.removeEmpty=function(){this.optUp.empty.customId&&this.empty
1Dom?this.emptyDom.style.display="none":this.removeChild(this.emptyDom)},l.prototype.showTopBtn=function(t){if(!this.topBtnShow){this.topBtnShow=!0;var o=this,e=o.optUp.toTop;if(o.toTopBtn==null){e.html?(o.toTopBtn=document.createElement("div"),o.toTopBtn.innerHTML=e.html):(o.toTopBtn=document.createElement("img"),o.toTopBtn.src=e.src),o.toTopBtn.className=e.warpClass,e.supportTap?o.toTopBtn.addEventListener("tap",function(n){n.stopPropagation(),o.preventDefault(n);var r=e.btnClick&&e.btnClick();r!==!0&&o.scrollTo(0,o.optUp.toTop.duration)}):o.toTopBtn.onclick=function(){var n=e.btnClick&&e.btnClick();n!==!0&&o.scrollTo(0,o.optUp.toTop.duration)};var s;e.warpId&&(s=o.getDomById(e.warpId)),s||(s=document.body),s.appendChild(o.toTopBtn)}o.toTopBtn.classList.remove(e.hideClass),o.toTopBtn.classList.add(e.showClass),o.setTopBtnFadeDuration(t)}},l.prototype.hideTopBtn=function(t){this.topBtnShow&&this.toTopBtn&&(this.topBtnShow=!1,this.toTopBtn.classList.remove(this.optUp.toTop.showClass),this.toTopBtn.classList.add(this.optUp.toTop.hideClass),this.setTopBtnFadeDuration(t))},l.prototype.setTopBtnFadeDuration=function(t){if(this.toTopBtn){var o=(t!=null?t:this.optUp.toTop.fadeDuration)+"s";this.toTopBtn.style.animationDuration=o,this.toTopBtn.style.webkitAnimationDuration=o}},l.prototype.scrollTo=function(t,o){var e=this,s=e.getScrollTop(),n=t;if(n>0){var r=e.getScrollHeight()-e.getClientHeight();n>r&&(n=r)}else n=0;e.isScrollTo=!0,e.scrollDom.style.webkitOverflowScrolling="auto",e.scrollDom.style.overflow="hidden",e.getStep(s,n,function(i){e.setScrollTop(i),i===n&&(e.scrollDom.style.webkitOverflowScrolling="touch",e.scrollDom.style.overflow="auto",e.isScrollTo=!1)},o)},l.prototype.getStep=function(t,o,e,s,n){var r=o-t;if(s===0||r===0){e&&e(o);return}s=s||300,n=n||30;var i=s/n,p=r/i,a=0,c=window.setInterval(function(){a<i-1?(t+=p,e&&e(t,c),a++):(e&&e(o,c),window.clearInterval(c))},n)},l.prototype.lazyLoad=function(t){var o=this,e=t!=null?t:o.optUp.lazyLoad.delay,s=setTimeout(function(){for(var n=o.scrollDom.querySelectorAll("["+o.optUp.lazyLoad.attr+"]"),r=n.length,i=0;i<r;i++){var p=n[i];if(p.getAttribute(o.lazyTag)!=="true"&&o.isInSee(p,o.optUp.lazyLoad.offset)){var a=p.getAttribute(o.optUp.lazyLoad.attr),c=new Image;c.onload=function(){var u=this.src,f=this.dom,h=o.optUp.lazyLoad.showClass;h&&f.classList.add(h),f.tagName==="IMG"?f.src=u:f.style.backgroundImage="url("+u+")",f.removeAttribute(o.optUp.lazyLoad.attr),f.removeAttribute(o.lazyTag)},c.onerror=function(){this.dom.removeAttribute(o.lazyTag)},c.onabort=function(){this.dom.removeAttribute(o.lazyTag)},c.src=a,p.setAttribute(o.lazyTag,"true"),c.dom=p}}},e);return s},l.prototype.isInSee=function(t,o){o=o||0;var e=this.getOffsetTop(t),s=this.getScrollTop()-o,n=e+t.offsetHeight,r=s+o+this.getClientHeight()+o;return e<r&&e>=s||n<=r&&n>s},l.prototype.getOffsetTop=function(t){for(var o=t.offsetTop,e=t.offsetParent;e!=null&&e!==this.scrollDom;)o+=e.offsetTop+e.clientTop,e=e.offsetParent;return o},l.prototype.getScrollHeight=function(){return this.scrollDom.scrollHeight},l.prototype.getClientHeight=function(){return this.isScrollBody&&document.compatMode==="CSS1Compat"?document.documentElement.clientHeight:this.scrollDom.clientHeight},l.prototype.getBodyHeight=function(){return document.body.clientHeight||document.documentElement.clientHeight},l.prototype.getScrollTop=function(){return this.isScrollBody?document.documentElement.scrollTop||document.body.scrollTop:this.scrollDom.scrollTop},l.prototype.getToBottom=function(){return this.getScrollHeight()-this.getClientHeight()-this.getScrollTop()},l.prototype.setScrollTop=function(t){typeof t=="number"&&(this.isScrollBody?(document.documentElement.scrollTop=t,document.body.scrollTop=t):this.scrollDom.scrollTop=t)},l.prototype.getDomById=function(t){var o;return t&&(typeof t=="string"?o=document.getElementById(t):t.nodeType&&(o=t)),o||console.error('the element with id as "'+t+'" can not be found: document.getElementById("'+t+'")==null'),o},l.prototype.removeChild=function(t){if(t){var o=t.parentNode;o&&o.removeChild(t),t=null}},l.prototype.destroy=function(){var t=this;t.scrollDom.removeEventListener("touchstart",t.touchstartEvent),t.scrollDom.removeEventListener("touchmove",t.touchmoveEvent),t.scrollDom.removeEventListener("touchend",t.touchendEvent),t.scrollDom.removeEventListener("touchcancel",t.touchendEvent),t.scrollDom.removeEventListener("mousedown",t.touchstartEvent),t.scrollDom.removeEventListener("mousemove",t.touchmoveEvent),t.scrollDom.removeEventListener("mouseup",t.touchendEvent),t.scrollDom.removeEventListener("mouseleave",t.touchendEvent),t.removeChild(t.downwarp),t.isScrollBody?window.removeEventListener("scroll",t.scrollEvent):t.scrollDom.removeEventListener("scroll",t.scrollEvent),t.removeChild(t.upwarp),t.removeChild(t.toTopBtn),t.setBounce(!0)},l})})(v);var L=v.exports;const b=g(L),E={name:"MeScrollVue",data:function(){return{mescroll:null,lastScrollTop:0,lastBounce:null}},props:{up:Object,down:Object}
1,mounted:function(){this.mescroll=new b(this.$refs.mescroll,{up:this.up,down:this.down}),this.$emit("init",this.mescroll)},methods:{beforeRouteEnter(){this.mescroll&&(this.lastScrollTop&&(this.mescroll.setScrollTop(this.lastScrollTop),setTimeout(()=>{this.mescroll.setTopBtnFadeDuration(0)},16)),this.lastBounce!=null&&this.mescroll.setBounce(this.lastBounce))},beforeRouteLeave(){this.mescroll&&(this.lastScrollTop=this.mescroll.getScrollTop(),this.mescroll.hideTopBtn(0),this.lastBounce=this.mescroll.optUp.isBounce,this.mescroll.setBounce(!0))}}},B={ref:"mescroll",class:"mescroll"};function C(d,l,t,o,e,s){return y(),D("div",B,[S("div",null,[T(d.$slots,"default")])],512)}const H=U(E,[["render",C]]);export{H as M};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.