-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathscroller.js
1 lines (1 loc) · 37.8 KB
/
scroller.js
1
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("wdui",[],t):"object"==typeof exports?exports.wdui=t():e.wdui=t()}(this,function(){return function(e){function t(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=50)}({0:function(e,t){e.exports=function(e,t,i,o){var r,n=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(r=e,n=e.default);var a="function"==typeof n?n.options:n;if(t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns),i&&(a._scopeId=i),o){var l=Object.create(a.computed||null);Object.keys(o).forEach(function(e){var t=o[e];l[e]=function(){return t}}),a.computed=l}return{esModule:r,exports:n,options:a}}},1:function(e,t){function i(e,t){var i=e[1]||"",r=e[3];if(!r)return i;if(t&&"function"==typeof btoa){var n=o(r);return[i].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([n]).join("\n")}return[i].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=i(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var n=this[r][0];"number"==typeof n&&(o[n]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"==typeof s[0]&&o[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},102:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(84),r=i(14),n=i(152),s=i.n(n);t.default={name:"wd-scroller",props:{onRefresh:Function,onLoad:Function,refreshText:{type:String,default:"下拉更新数据"},loadText:{type:String,default:"加载更多数据"},loadingText:{type:String,default:"正在加载"},noDataText:{type:String,default:"没有更多数据了"},noDataLoadLock:{type:Boolean,default:!0},animating:{type:Boolean,default:!0},animationDuration:{type:Number,default:400},zooming:{type:Boolean,default:!1},bouncing:{type:Boolean,default:!0}},data:function(){return{noRefresh:!1,noRefreshStyle:!1,noLoad:!1,showLoadingState:!0,$scrollTarget:null,$slotWrapper:null,render:null,scroller:null,scrollTargetRect:{},slotObserver:null,mousedown:!1,pullToRefreshState:0,pullToRefreshStateCache:0,pullToRefreshStateAdjustFlag:!1,infiniteLoadingState:0,tipHeight:0,contentHeight:0,containerHeight:0,noDataLoadLocker:!1}},components:{scrollerLoader:s.a},mounted:function(){this.init()},computed:{contentOverflow:function(){return this.contentHeight>=this.containerHeight}},methods:{init:function(){this.setInitData(),this.bindEvents()},setInitData:function(){var e=this;this.$scrollTarget=this.$refs.content,this.$slotWrapper=this.$refs.slotWrapper,this.scrollTargetRect=this.$scrollTarget.getBoundingClientRect(),this.containerHeight=this.$el.getBoundingClientRect().height,this.render=r.a.getRender(this.$scrollTarget),this.onRefresh?this.tipHeight=this.$el.querySelector(".wd-scroller-refresh-wrap").offsetHeight:this.onLoad&&(this.tipHeight=this.$el.querySelector(".wd-scroller-infinite-load-wrap").offsetHeight),this.slotObserver=new MutationObserver(function(){e.updateDOMData(),e.resetDimensions()}),this.slotObserver.observe(this.$slotWrapper,{childList:!0,attributes:!0,characterData:!0,subtree:!0})},updateDOMData:function(){this.contentHeight=this.$el.querySelector(".wd-scroller-slot-wrapper").getBoundingClientRect().height},bindEvents:function(){var e=this;this.scroller=new o.a(this.render,{scrollingX:!1,zooming:this.zooming,animating:this.animating,animationDuration:this.animationDuration,bouncing:this.bouncing}),this.scroller.setPosition(this.scrollTargetRect.left+this.$scrollTarget.clientLeft,this.scrollTargetRect.top+this.$scrollTarget.clientTop),this.resetDimensions(),this.onRefresh&&this.scroller.activatePullToRefresh(this.tipHeight,function(){e.noRefresh=!1,e.pullToRefreshStateAdjustFlag=!1,e.pullToRefreshStateCache=e.pullToRefreshState=1},function(){1===e.pullToRefreshStateCache&&(e.pullToRefreshStateAdjustFlag=!0),e.pullToRefreshStateCache=e.pullToRefreshState=0},function(){2!==e.pullToRefreshState&&(e.noRefreshStyle=!1,e.pullToRefreshStateCache=e.pullToRefreshState=2,e.onRefresh())})},scrollTo:function(e,t,i){this.scroller.scrollTo(e,t,i)},touchStart:function(e){e.target.tagName.match(/input|textarea|select/i)||this.scroller.doTouchStart(e.touches,e.timeStamp)},touchMove:function(e){if(e.preventDefault(),this.scroller.doTouchMove(e.touches,e.timeStamp),this.onLoad&&this.contentOverflow){var t=this.scroller.getValues().top,i=this.$el.clientWidth,o=this.$el.clientHeight,r=this.$slotWrapper.offsetWidth,n=this.$slotWrapper.offsetHeight+this.tipHeight;this.noRefresh&&(n+=this.tipHeight),t+this.$el.clientHeight>this.$slotWrapper.offsetHeight+this.tipHeight?this.resetDimensionsManually(i,o,r,n):t+this.$el.clientHeight===this.$slotWrapper.offsetHeight+this.tipHeight&&this.resetDimensions()}},touchEnd:function(e){var t=this;if(this.scroller.doTouchEnd(e.timeStamp),this.onLoad&&this.contentOverflow){if(this.scroller.getValues().top+this.$el.clientHeight>this.$slotWrapper.offsetHeight+this.tipHeight){if(this.infiniteLoadingState)return;if(this.noDataLoadLocker)return;this.noLoad=!1,this.infiniteLoadingState=1,setTimeout(function(){t.onLoad()},200)}}this.pullToRefreshStateAdjustFlag&&(this.scroller.scrollTo(0,this.tipHeight,!0),setTimeout(function(){t.pullToRefreshStateAdjustFlag=!1,t.noRefreshStyle=!1,t.scroller.scrollTo(0,0,!1),t.resetDimensions()},this.animationDuration))},mouseDown:function(e){e.target.tagName.match(/input|textarea|select/i)||(this.scroller.doTouchStart([{pageX:e.pageX,pageY:e.pageY}],e.timeStamp),this.mousedown=!0)},mouseMove:function(e){if(this.mousedown){if(this.scroller.doTouchMove([{pageX:e.pageX,pageY:e.pageY}],e.timeStamp),this.onLoad&&this.contentOverflow){var t=this.scroller.getValues().top,i=this.$el.clientWidth,o=this.$el.clientHeight,r=this.$slotWrapper.offsetWidth,n=this.$slotWrapper.offsetHeight+this.tipHeight;this.noRefresh&&(n+=this.tipHeight),t+this.$el.clientHeight>this.$slotWrapper.offsetHeight+this.tipHeight?this.resetDimensionsManually(i,o,r,n):t+this.$el.clientHeight===this.$slotWrapper.offsetHeight+this.tipHeight&&this.resetDimensions()}this.mousedown=!0}},mouseUp:function(e){this.mousedown&&(this.touchEnd(e),this.mousedown=!1)},resetDimensions:function(){var e=this.$el.clientWidth,t=this.$el.clientHeight,i=this.$slotWrapper.offsetWidth,o=this.$slotWrapper.offsetHeight;this.noRefresh&&(o+=this.tipHeight),this.noLoad&&(o+=this.tipHeight),this.scroller.setDimensions(e,t,i,o)},resetDimensionsManually:function(e,t,i,o){this.scroller.setDimensions(e,t,i,o)},finishPullToRefresh:function(){this.scroller.finishPullToRefresh()},finishInfiniteLoading:function(){var e=this;this.infiniteLoadingState=0;var t=-r.a.getElementTranslate(this.$refs.content).top,i=this.$refs.slotWrapper.getBoundingClientRect().height;this.containerHeight+t>i&&(this.showLoadingState=!1,this.scroller.scrollTo(0,i-this.containerHeight+this.tipHeight,!0),setTimeout(function(){e.showLoadingState=!0},this.animationDuration))},noMoreRefresh:function(){this.noRefresh=!0,this.noRefreshStyle=!0,this.scroller.scrollTo(0,0,!1),this.scroller.finishPullToRefresh(),this.resetDimensionsManually(this.$el.clientWidth,this.$el.clientHeight,this.$slotWrapper.offsetWidth,this.$slotWrapper.offsetHeight+this.tipHeight)},noMoreInfiniteLoading:function(){this.finishInfiniteLoading(),this.noLoad=!0,this.noDataLoadLocker=!0}}}},103:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"wd-scroller-loader",props:{type:{type:String,default:"big"},text:{type:String,default:"正在加载"}}}},127:function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".wd-scroll-loader[data-v-445a1b5b]{width:100%;height:1.386667rem;text-align:center;padding:.373333rem 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:.266667rem;color:#222;letter-spacing:0;line-height:.613333rem}.wd-spin-wrap[data-v-445a1b5b]{position:relative}.wd-spin-wrap.big[data-v-445a1b5b]{margin-left:.8rem;width:.8rem;height:.8rem;left:50%}.wd-spin-wrap.big+span[data-v-445a1b5b]{margin-right:.4rem}.wd-spin-wrap.small[data-v-445a1b5b]{margin-left:.64rem;width:.64rem;height:.64rem;display:inline-block;vertical-align:middle;margin-right:-.12rem}.wd-spin-wrap.small+span[data-v-445a1b5b]{margin-right:.32rem}.wd-spin-wrap>div[data-v-445a1b5b]:first-child{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);-webkit-animation:wd-spin-wrap 1.2s -.1s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.1s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(2){-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg);-webkit-animation:wd-spin-wrap 1.2s -.2s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.2s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(3){-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation:wd-spin-wrap 1.2s -.3s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.3s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(4){-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);-webkit-animation:wd-spin-wrap 1.2s -.4s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.4s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(5){-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg);-webkit-animation:wd-spin-wrap 1.2s -.5s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.5s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(6){-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg);-webkit-animation:wd-spin-wrap 1.2s -.6s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.6s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(7){-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);-webkit-animation:wd-spin-wrap 1.2s -.7s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.7s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(8){-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg);-webkit-animation:wd-spin-wrap 1.2s -.8s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.8s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(9){-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg);-webkit-animation:wd-spin-wrap 1.2s -.9s infinite ease-in-out;animation:wd-spin-wrap 1.2s -.9s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(10){-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg);-webkit-animation:wd-spin-wrap 1.2s -1s infinite ease-in-out;animation:wd-spin-wrap 1.2s -1s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(11){-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg);-webkit-animation:wd-spin-wrap 1.2s -1.1s infinite ease-in-out;animation:wd-spin-wrap 1.2s -1.1s infinite ease-in-out}.wd-spin-wrap>div[data-v-445a1b5b]:nth-child(12){-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg);-webkit-animation:wd-spin-wrap 1.2s -1.2s infinite ease-in-out;animation:wd-spin-wrap 1.2s -1.2s infinite ease-in-out}.wd-spin-wrap.small>div[data-v-445a1b5b]{background-color:#000;width:.053333rem;height:.146667rem;-webkit-transform-origin:center .266667rem;-ms-transform-origin:center .266667rem;transform-origin:center .266667rem}.wd-spin-wrap.big>div[data-v-445a1b5b],.wd-spin-wrap.small>div[data-v-445a1b5b]{-webkit-border-radius:.053333rem;border-radius:.053333rem;-webkit-animation-fill-mode:both;animation-fill-mode:both;position:absolute}.wd-spin-wrap.big>div[data-v-445a1b5b]{background-color:#fff;width:.08rem;height:.186667rem;-webkit-transform-origin:center .373333rem;-ms-transform-origin:center .373333rem;transform-origin:center .373333rem}@-webkit-keyframes wd-spin-wrap{50%{opacity:.3}to{opacity:1}}@keyframes wd-spin-wrap{50%{opacity:.3}to{opacity:1}}",""])},14:function(e,t,i){"use strict";var o=document.documentElement.style,r=void 0,n=!1;window.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?r="presto":"MozAppearance"in o?r="gecko":"WebkitAppearance"in o?r="webkit":"string"==typeof navigator.cpuClass&&(r="trident");var s={trident:"-ms-",gecko:"-moz-",webkit:"-webkit-",presto:"-o-"}[r],a={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[r],l=document.createElement("div"),c=a+"Perspective",p=a+"Transform",f=s+"transform",d=a+"Transition",_=s+"transition",h=a.toLowerCase()+"TransitionEnd";void 0!==l.style[c]&&(n=!0);var u=function(e){var t={left:0,top:0};if(null===e||null===e.style)return t;var i=e.style[p],o=i.match(/translate(3d)?\(\s*(-?\d+\.?\d*)px,\s*(-?\d+\.?\d*)px.*\)/);return o&&(t.left=+o[2],t.top=+o[3]),t},m=function(e){if(null!==e&&null!==e.style){var t=e.style[p];t&&(t=t.replace(/translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/g,""),e.style[p]=t)}},g=function(e,t,i){if((null!==t||null!==i)&&null!==e&&void 0!==e&&null!==e.style&&(e.style[p]||0!==t||0!==i)){if(null===t||null===i){var o=u(e);null===t&&(t=o.left),null===i&&(i=o.top)}m(e),e.style[p]+=n?" translate("+(t?t+"px":"0px")+","+(i?i+"px":"0px")+") translateZ(0px)":" translate("+(t?t+"px":"0px")+","+(i?i+"px":"0px")+")"}},w=function(e){return void 0!==l.style[c]?function(t,i,o){e.style[p]="translate3d("+-t+"px,"+-i+"px,0) scale("+o+")"}:void 0!==l.style[p]?function(t,i,o){e.style[p]="translate("+-t+"px,"+-i+"px) scale("+o+")"}:function(t,i,o){e.style.marginLeft=t?-t/o+"px":"",e.style.marginTop=i?-i/o+"px":"",e.style.zoom=o||""}};t.a={transformProperty:p,transformStyleName:f,transitionProperty:d,transitionStyleName:_,transitionEndProperty:h,getElementTranslate:u,translateElement:g,cancelTranslateElement:m,getRender:w}},142:function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,'.wd-scroller{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-refresh-wrap{margin-top:-1.6rem;height:1.6rem;font-size:.266667rem}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-refresh-wrap.noRefresh{margin-top:0}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-refresh-wrap .wd-scroller-no-refresh-wrap,.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-refresh-wrap .wd-scroller-pull-to-refresh-wrap,.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-refresh-wrap .wd-scroller-refresh-loading-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;font-size:.266667rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-refresh-wrap .wd-scroller-pull-to-refresh-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-refresh-wrap .wd-scroller-pull-to-refresh-wrap .wd-scroller-pull-to-refresh-loading-icon{margin-right:.266667rem;width:.64rem;height:.64rem;-webkit-transition:all .3s;transition:all .3s}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-refresh-wrap .wd-scroller-pull-to-refresh-wrap.holding .wd-scroller-pull-to-refresh-loading-icon{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-slot-wrapper{overflow:hidden}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-infinite-load-wrap{height:1.6rem;font-size:.266667rem}.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-infinite-load-wrap .wd-scroller-infinite-load-tip-wrap,.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-infinite-load-wrap .wd-scroller-infinite-loading-wrap,.wd-scroller .wd-scroller-inner-wrapper .wd-scroller-infinite-load-wrap .wd-scroller-no-infinite-loading-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wd-scroller .bottom-text{width:100%;text-align:center;margin:.266667rem 0;color:#999}[data-dpr="1"] .wd-scroller .bottom-text{font-size:10px}[data-dpr="2"] .wd-scroller .bottom-text{font-size:20px}[data-dpr="3"] .wd-scroller .bottom-text{font-size:30px}.wd-scroller .no-text{width:100%;text-align:center;margin:.266667rem 0;color:#999}[data-dpr="1"] .wd-scroller .no-text{font-size:10px}[data-dpr="2"] .wd-scroller .no-text{font-size:20px}[data-dpr="3"] .wd-scroller .no-text{font-size:30px}.wd-scroller .top-text{width:100%;text-align:center;margin:.266667rem 0;color:#999}[data-dpr="1"] .wd-scroller .top-text{font-size:10px}[data-dpr="2"] .wd-scroller .top-text{font-size:20px}[data-dpr="3"] .wd-scroller .top-text{font-size:30px}.wd-scroller .top-text:before{width:.64rem;height:.64rem;content:"";background:url('+i(26)+") no-repeat 50%;-webkit-background-size:100% 100%;background-size:100% 100%;display:inline-block;vertical-align:middle;margin-right:.266667rem}",""])},152:function(e,t,i){i(196);var o=i(0)(i(103),i(168),"data-v-445a1b5b",null);e.exports=o.exports},168:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wd-scroll-loader"},[i("div",{staticClass:"wd-spin-wrap small"},e._l(12,function(e){return i("div")})),e._v(" "),i("span",[e._v(e._s(e.text))])])},staticRenderFns:[]}},183:function(e,t,i){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"wd-scroller",on:{touchstart:function(t){e.touchStart(t)},touchmove:function(t){e.touchMove(t)},touchend:function(t){e.touchEnd(t)},mousedown:function(t){e.mouseDown(t)},mousemove:function(t){e.mouseMove(t)},mouseup:function(t){e.mouseUp(t)}}},[o("div",{ref:"content",staticClass:"wd-scroller-inner-wrapper"},[e.onRefresh?o("div",{staticClass:"wd-scroller-refresh-wrap",class:{noRefresh:e.noRefreshStyle}},[e.noRefresh?[o("div",{directives:[{name:"show",rawName:"v-show",value:e.noRefresh,expression:"noRefresh"}],staticClass:"wd-scroller-no-refresh-wrap"},[o("div",{staticClass:"wd-scroller-no-refresh-text"},[e._v(e._s(e.noDataText))])])]:[o("div",{directives:[{name:"show",rawName:"v-show",value:2!==e.pullToRefreshState,expression:"pullToRefreshState !== 2"}],staticClass:"wd-scroller-pull-to-refresh-wrap",class:{holding:1===e.pullToRefreshState}},[o("img",{staticClass:"wd-scroller-pull-to-refresh-loading-icon",attrs:{src:i(26)}}),e._v(" "),o("div",{staticClass:"wd-scroller-refresh-text"},[e._v(e._s(e.refreshText))])]),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:2===e.pullToRefreshState,expression:"pullToRefreshState === 2"}],staticClass:"wd-scroller-refresh-loading-wrap"},[o("scroller-loader",{attrs:{text:e.loadingText}})],1)]],2):e._e(),e._v(" "),o("div",{ref:"slotWrapper",staticClass:"wd-scroller-slot-wrapper"},[e._t("default")],2),e._v(" "),e.onLoad&&e.contentOverflow?o("div",{staticClass:"wd-scroller-infinite-load-wrap"},[e.noLoad?[o("div",{staticClass:"wd-scroller-no-infinite-loading-wrap"},[o("div",{staticClass:"wd-scroller-no-infinite-loading-text"},[e._v(e._s(e.noDataText))])])]:e.showLoadingState?[o("div",{directives:[{name:"show",rawName:"v-show",value:1!==e.infiniteLoadingState,expression:"infiniteLoadingState !== 1"}],staticClass:"wd-scroller-infinite-load-tip-wrap"},[o("div",{staticClass:"wd-scroller-bottom-text"},[e._v(e._s(e.loadText))])]),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:1===e.infiniteLoadingState,expression:"infiniteLoadingState === 1"}],staticClass:"wd-scroller-infinite-loading-wrap"},[o("scroller-loader",{attrs:{text:e.loadingText}})],1)]:e._e()],2):e._e()])])},staticRenderFns:[]}},196:function(e,t,i){var o=i(127);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("f0089894",o,!0)},2:function(e,t,i){function o(e){for(var t=0;t<e.length;t++){var i=e[t],o=p[i.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](i.parts[r]);for(;r<i.parts.length;r++)o.parts.push(n(i.parts[r]));o.parts.length>i.parts.length&&(o.parts.length=i.parts.length)}else{for(var s=[],r=0;r<i.parts.length;r++)s.push(n(i.parts[r]));p[i.id]={id:i.id,refs:1,parts:s}}}}function r(){var e=document.createElement("style");return e.type="text/css",f.appendChild(e),e}function n(e){var t,i,o=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(o){if(h)return u;o.parentNode.removeChild(o)}if(m){var n=_++;o=d||(d=r()),t=s.bind(null,o,n,!1),i=s.bind(null,o,n,!0)}else o=r(),t=a.bind(null,o),i=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else i()}}function s(e,t,i,o){var r=i?"":o.css;if(e.styleSheet)e.styleSheet.cssText=g(t,r);else{var n=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(n,s[t]):e.appendChild(n)}}function a(e,t){var i=t.css,o=t.media,r=t.sourceMap;if(o&&e.setAttribute("media",o),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=i(3),p={},f=l&&(document.head||document.getElementsByTagName("head")[0]),d=null,_=0,h=!1,u=function(){},m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,i){h=i;var r=c(e,t);return o(r),function(t){for(var i=[],n=0;n<r.length;n++){var s=r[n],a=p[s.id];a.refs--,i.push(a)}t?(r=c(e,t),o(r)):r=[];for(var n=0;n<i.length;n++){var a=i[n];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete p[a.id]}}}};var g=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},211:function(e,t,i){var o=i(142);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("227427c6",o,!0)},26:function(e,t){e.exports="data:image/png;base64,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"},3:function(e,t){e.exports=function(e,t){for(var i=[],o={},r=0;r<t.length;r++){var n=t[r],s=n[0],a=n[1],l=n[2],c=n[3],p={id:e+":"+r,css:a,media:l,sourceMap:c};o[s]?o[s].parts.push(p):i.push(o[s]={id:s,parts:[p]})}return i}},50:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(71),r=i.n(o);i.d(t,"default",function(){return r.a})},71:function(e,t,i){i(211);var o=i(0)(i(102),i(183),null,null);e.exports=o.exports},84:function(e,t,i){"use strict";!function(e){var t=Date.now||function(){return+new Date},i={},o=1;e.core?core.effect||(core.effect={}):e.core={effect:{}},core.effect.Animate={requestAnimationFrame:function(){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,i=!!t;if(t&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(t.toString())&&(i=!1),i)return function(e,i){t(e,i)};var o={},r=0,n=1,s=null,a=+new Date;return function(e,t){var i=n++;return o[i]=e,r++,null===s&&(s=setInterval(function(){var e=+new Date,t=o;o={},r=0;for(var i in t)t.hasOwnProperty(i)&&(t[i](e),a=e);e-a>2500&&(clearInterval(s),s=null)},1e3/60)),i}}(),stop:function(e){var t=null!=i[e];return t&&(i[e]=null),t},isRunning:function(e){return null!=i[e]},start:function(e,r,n,s,a,l){var c=t(),p=c,f=0,d=0,_=o++;if(l||(l=document.body),_%20==0){var h={};for(var u in i)h[u]=!0;i=h}var m=function o(h){var u=!0!==h,m=t();if(!i[_]||r&&!r(_))return i[_]=null,void(n&&n(60-d/((m-c)/1e3),_,!1));if(u)for(var g=Math.round((m-p)/(1e3/60))-1,w=0;w<Math.min(g,4);w++)o(!0),d++;s&&(f=(m-c)/s)>1&&(f=1);var v=a?a(f):f;!1!==e(v,m,u)&&1!==f||!u?u&&(p=m,core.effect.Animate.requestAnimationFrame(o,l)):(i[_]=null,n&&n(60-d/((m-c)/1e3),_,1===f||null==s))};return i[_]=!0,core.effect.Animate.requestAnimationFrame(m,l),_}}}(window);var o=void 0;!function(){var e=function(){};o=function(t,i){this.__callback=t,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:e,penetrationDeceleration:.03,penetrationAcceleration:.08};for(var o in i)this.options[o]=i[o]};var t=function(e){return Math.pow(e-1,3)+1},i=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},r={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshDeactivate:null,__refreshStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,i,o){var r=this;e===+e&&(r.__clientWidth=e),t===+t&&(r.__clientHeight=t),i===+i&&(r.__contentWidth=i),o===+o&&(r.__contentHeight=o),r.__computeScrollMax(),r.scrollTo(r.__scrollLeft,r.__scrollTop,!0)},setPosition:function(e,t){var i=this;i.__clientLeft=e||0,i.__clientTop=t||0},setSnapSize:function(e,t){var i=this;i.__snapWidth=e,i.__snapHeight=t},activatePullToRefresh:function(e,t,i,o){var r=this;r.__refreshHeight=e,r.__refreshActivate=t,r.__refreshDeactivate=i,r.__refreshStart=o},triggerPullToRefresh:function(){this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&this.__refreshStart()},finishPullToRefresh:function(){var e=this;e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)},getValues:function(){var e=this;return{left:e.__scrollLeft,top:e.__scrollTop,zoom:e.__zoomLevel}},getScrollMax:function(){var e=this;return{left:e.__maxScrollLeft,top:e.__maxScrollTop}},zoomTo:function(e,t,i,o,r){var n=this;if(!n.options.zooming)throw new Error("Zooming is not enabled!");r&&(n.__zoomComplete=r),n.__isDecelerating&&(core.effect.Animate.stop(n.__isDecelerating),n.__isDecelerating=!1);var s=n.__zoomLevel;null==i&&(i=n.__clientWidth/2),null==o&&(o=n.__clientHeight/2),e=Math.max(Math.min(e,n.options.maxZoom),n.options.minZoom),n.__computeScrollMax(e);var a=(i+n.__scrollLeft)*e/s-i,l=(o+n.__scrollTop)*e/s-o;a>n.__maxScrollLeft?a=n.__maxScrollLeft:a<0&&(a=0),l>n.__maxScrollTop?l=n.__maxScrollTop:l<0&&(l=0),n.__publish(a,l,e,t)},zoomBy:function(e,t,i,o,r){var n=this;n.zoomTo(n.__zoomLevel*e,t,i,o,r)},scrollTo:function(e,t,i,o){var r=this;if(r.__isDecelerating&&(core.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1),null!=o&&o!==r.__zoomLevel){if(!r.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,r.__computeScrollMax(o)}else o=r.__zoomLevel;r.options.scrollingX?r.options.paging?e=Math.round(e/r.__clientWidth)*r.__clientWidth:r.options.snapping&&(e=Math.round(e/r.__snapWidth)*r.__snapWidth):e=r.__scrollLeft,r.options.scrollingY?r.options.paging?t=Math.round(t/r.__clientHeight)*r.__clientHeight:r.options.snapping&&(t=Math.round(t/r.__snapHeight)*r.__snapHeight):t=r.__scrollTop,e=Math.max(Math.min(r.__maxScrollLeft,e),0),t=Math.max(Math.min(r.__maxScrollTop,t),0),e===r.__scrollLeft&&t===r.__scrollTop&&(i=!1),r.__isTracking||r.__publish(e,t,o,i)},scrollBy:function(e,t,i){var o=this,r=o.__isAnimating?o.__scheduledLeft:o.__scrollLeft,n=o.__isAnimating?o.__scheduledTop:o.__scrollTop;o.scrollTo(r+(e||0),n+(t||0),i)},doMouseZoom:function(e,t,i,o){var r=this,n=e>0?.97:1.03;return r.zoomTo(r.__zoomLevel*n,!1,i-r.__clientLeft,o-r.__clientTop)},doTouchStart:function(e,t){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var i=this;i.__interruptedAnimation=!0,i.__isDecelerating&&(core.effect.Animate.stop(i.__isDecelerating),i.__isDecelerating=!1,i.__interruptedAnimation=!0),i.__isAnimating&&(core.effect.Animate.stop(i.__isAnimating),i.__isAnimating=!1,i.__interruptedAnimation=!0);var o=void 0,r=void 0,n=1===e.length;n?(o=e[0].pageX,r=e[0].pageY):(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2),i.__initialTouchLeft=o,i.__initialTouchTop=r,i.__zoomLevelStart=i.__zoomLevel,i.__lastTouchLeft=o,i.__lastTouchTop=r,i.__lastTouchMove=t,i.__lastScale=1,i.__enableScrollX=!n&&i.options.scrollingX,i.__enableScrollY=!n&&i.options.scrollingY,i.__isTracking=!0,i.__didDecelerationComplete=!1,i.__isDragging=!n,i.__isSingleTouch=n,i.__positions=[]},doTouchMove:function(e,t,i){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var o=this;if(o.__isTracking){var r=void 0,n=void 0;2===e.length?(r=Math.abs(e[0].pageX+e[1].pageX)/2,n=Math.abs(e[0].pageY+e[1].pageY)/2):(r=e[0].pageX,n=e[0].pageY);var s=o.__positions;if(o.__isDragging){var a=r-o.__lastTouchLeft,l=n-o.__lastTouchTop,c=o.__scrollLeft,p=o.__scrollTop,f=o.__zoomLevel;if(null!=i&&o.options.zooming){var d=f;if(f=f/o.__lastScale*i,f=Math.max(Math.min(f,o.options.maxZoom),o.options.minZoom),d!==f){var _=r-o.__clientLeft,h=n-o.__clientTop;c=(_+c)*f/d-_,p=(h+p)*f/d-h,o.__computeScrollMax(f)}}if(o.__enableScrollX){c-=a*this.options.speedMultiplier;var u=o.__maxScrollLeft;(c>u||c<0)&&(o.options.bouncing?c+=a/2*this.options.speedMultiplier:c=c>u?u:0)}if(o.__enableScrollY){p-=l*this.options.speedMultiplier;var m=o.__maxScrollTop;(p>m||p<0)&&(o.options.bouncing?(p+=l/2*this.options.speedMultiplier,o.__enableScrollX||null==o.__refreshHeight||(!o.__refreshActive&&p<=-o.__refreshHeight?(o.__refreshActive=!0,o.__refreshActivate&&o.__refreshActivate()):o.__refreshActive&&p>-o.__refreshHeight&&(o.__refreshActive=!1,o.__refreshDeactivate&&o.__refreshDeactivate()))):p=p>m?m:0)}s.length>60&&s.splice(0,30),s.push(c,p,t),o.__publish(c,p,f)}else{var g=o.options.locking?3:0,w=Math.abs(r-o.__initialTouchLeft),v=Math.abs(n-o.__initialTouchTop);o.__enableScrollX=o.options.scrollingX&&w>=g,o.__enableScrollY=o.options.scrollingY&&v>=g,s.push(o.__scrollLeft,o.__scrollTop,t),o.__isDragging=(o.__enableScrollX||o.__enableScrollY)&&(w>=5||v>=5),o.__isDragging&&(o.__interruptedAnimation=!1)}o.__lastTouchLeft=r,o.__lastTouchTop=n,o.__lastTouchMove=t,o.__lastScale=i}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);var t=this;if(t.__isTracking){if(t.__isTracking=!1,t.__isDragging)if(t.__isDragging=!1,t.__isSingleTouch&&t.options.animating&&e-t.__lastTouchMove<=100){for(var i=t.__positions,o=i.length-1,r=o,n=o;n>0&&i[n]>t.__lastTouchMove-100;n-=3)r=n;if(r!==o){var s=i[o]-i[r],a=t.__scrollLeft-i[r-2],l=t.__scrollTop-i[r-1];t.__decelerationVelocityX=a/s*(1e3/60),t.__decelerationVelocityY=l/s*(1e3/60);var c=t.options.paging||t.options.snapping?4:1;Math.abs(t.__decelerationVelocityX)>c||Math.abs(t.__decelerationVelocityY)>c?t.__refreshActive||t.__startDeceleration(e):t.options.scrollingComplete()}else t.options.scrollingComplete()}else e-t.__lastTouchMove>100&&t.options.scrollingComplete();t.__isDecelerating||(t.__refreshActive&&t.__refreshStart?(t.__publish(t.__scrollLeft,-t.__refreshHeight,t.__zoomLevel,!0),t.__refreshStart&&t.__refreshStart()):((t.__interruptedAnimation||t.__isDragging)&&t.options.scrollingComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,!0,t.__zoomLevel),t.__refreshActive&&(t.__refreshActive=!1,t.__refreshDeactivate&&t.__refreshDeactivate()))),t.__positions.length=0}},__publish:function(e,o,r,n){var s=this,a=s.__isAnimating;if(a&&(core.effect.Animate.stop(a),s.__isAnimating=!1),n&&s.options.animating){s.__scheduledLeft=e,s.__scheduledTop=o,s.__scheduledZoom=r;var l=s.__scrollLeft,c=s.__scrollTop,p=s.__zoomLevel,f=e-l,d=o-c,_=r-p,h=function(e,t,i){i&&(s.__scrollLeft=l+f*e,s.__scrollTop=c+d*e,s.__zoomLevel=p+_*e,s.__callback&&s.__callback(s.__scrollLeft,s.__scrollTop,s.__zoomLevel))},u=function(e){return s.__isAnimating===e},m=function(e,t,i){t===s.__isAnimating&&(s.__isAnimating=!1),(s.__didDecelerationComplete||i)&&s.options.scrollingComplete(),s.options.zooming&&(s.__computeScrollMax(),s.__zoomComplete&&(s.__zoomComplete(),s.__zoomComplete=null))};s.__isAnimating=core.effect.Animate.start(h,u,m,s.options.animationDuration,a?t:i)}else s.__scheduledLeft=s.__scrollLeft=e,s.__scheduledTop=s.__scrollTop=o,s.__scheduledZoom=s.__zoomLevel=r,s.__callback&&s.__callback(e,o,r),s.options.zooming&&(s.__computeScrollMax(),s.__zoomComplete&&(s.__zoomComplete(),s.__zoomComplete=null))},__computeScrollMax:function(e){var t=this;null==e&&(e=t.__zoomLevel),t.__maxScrollLeft=Math.max(t.__contentWidth*e-t.__clientWidth,0),t.__maxScrollTop=Math.max(t.__contentHeight*e-t.__clientHeight,0)},__startDeceleration:function(e){var t=this;if(t.options.paging){var i=Math.max(Math.min(t.__scrollLeft,t.__maxScrollLeft),0),o=Math.max(Math.min(t.__scrollTop,t.__maxScrollTop),0),r=t.__clientWidth,n=t.__clientHeight;t.__minDecelerationScrollLeft=Math.floor(i/r)*r,t.__minDecelerationScrollTop=Math.floor(o/n)*n,t.__maxDecelerationScrollLeft=Math.ceil(i/r)*r,t.__maxDecelerationScrollTop=Math.ceil(o/n)*n}else t.__minDecelerationScrollLeft=0,t.__minDecelerationScrollTop=0,t.__maxDecelerationScrollLeft=t.__maxScrollLeft,t.__maxDecelerationScrollTop=t.__maxScrollTop;var s=function(e,i,o){t.__stepThroughDeceleration(o)},a=t.options.snapping?4:.001,l=function(){var e=Math.abs(t.__decelerationVelocityX)>=a||Math.abs(t.__decelerationVelocityY)>=a;return e||(t.__didDecelerationComplete=!0),e},c=function(e,i,o){t.__isDecelerating=!1,t.__didDecelerationComplete&&t.options.scrollingComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,t.options.snapping)};t.__isDecelerating=core.effect.Animate.start(s,l,c)},__stepThroughDeceleration:function(e){var t=this,i=t.__scrollLeft+t.__decelerationVelocityX,o=t.__scrollTop+t.__decelerationVelocityY;if(!t.options.bouncing){var r=Math.max(Math.min(t.__maxDecelerationScrollLeft,i),t.__minDecelerationScrollLeft);r!==i&&(i=r,t.__decelerationVelocityX=0);var n=Math.max(Math.min(t.__maxDecelerationScrollTop,o),t.__minDecelerationScrollTop);n!==o&&(o=n,t.__decelerationVelocityY=0)}if(e?t.__publish(i,o,t.__zoomLevel):(t.__scrollLeft=i,t.__scrollTop=o),!t.options.paging){t.__decelerationVelocityX*=.95,t.__decelerationVelocityY*=.95}if(t.options.bouncing){var s=0,a=0,l=t.options.penetrationDeceleration,c=t.options.penetrationAcceleration;i<t.__minDecelerationScrollLeft?s=t.__minDecelerationScrollLeft-i:i>t.__maxDecelerationScrollLeft&&(s=t.__maxDecelerationScrollLeft-i),o<t.__minDecelerationScrollTop?a=t.__minDecelerationScrollTop-o:o>t.__maxDecelerationScrollTop&&(a=t.__maxDecelerationScrollTop-o),0!==s&&(s*t.__decelerationVelocityX<=0?t.__decelerationVelocityX+=s*l:t.__decelerationVelocityX=s*c),0!==a&&(a*t.__decelerationVelocityY<=0?t.__decelerationVelocityY+=a*l:t.__decelerationVelocityY=a*c)}}};for(var n in r)o.prototype[n]=r[n]}(),t.a=o}})});