You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
5.6 KiB
11 lines
5.6 KiB
3 years ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mescroll-uni/mescroll-body"],{"013b":function(t,o,e){"use strict";var n=e("a552"),i=e.n(n);i.a},5563:function(t,o,e){"use strict";e.r(o);var n=e("9e9c"),i=e("6001");for(var r in i)"default"!==r&&function(t){e.d(o,t,(function(){return i[t]}))}(r);e("013b");var s,u=e("f0c5"),c=e("abcb"),l=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);"function"===typeof c["a"]&&Object(c["a"])(l),o["default"]=l.exports},6001:function(t,o,e){"use strict";e.r(o);var n=e("8852"),i=e.n(n);for(var r in n)"default"!==r&&function(t){e.d(o,t,(function(){return n[t]}))}(r);o["default"]=i.a},8852:function(t,o,e){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n=s(e("4aab")),i=s(e("a3f9")),r=s(e("00e8"));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){e.e("components/mescroll-uni/components/mescroll-empty").then(function(){return resolve(e("9856"))}.bind(null,e)).catch(e.oe)},c=function(){e.e("components/mescroll-uni/components/mescroll-top").then(function(){return resolve(e("67f3"))}.bind(null,e)).catch(e.oe)},l={mixins:[r.default],components:{MescrollEmpty:u,MescrollTop:c},data:function(){return{mescroll:{optDown:{},optUp:{}},downHight:0,downRate:0,downLoadType:0,upLoadType:0,isShowEmpty:!1,isShowToTop:!1,windowHeight:0,windowBottom:0,statusBarHeight:0}},props:{down:Object,up:Object,top:[String,Number],topbar:[Boolean,String],bottom:[String,Number],safearea:Boolean,height:[String,Number],bottombar:{type:Boolean,default:!0},sticky:Boolean},computed:{minHeight:function(){return this.toPx(this.height||"100%")+"px"},numTop:function(){return this.toPx(this.top)},padTop:function(){return this.numTop+"px"},numBottom:function(){return this.toPx(this.bottom)},padBottom:function(){return this.numBottom+"px"},isDownReset:function(){return 3===this.downLoadType||4===this.downLoadType},transition:function(){return this.isDownReset?"transform 300ms":""},translateY:function(){return this.downHight>0?"translateY("+this.downHight+"px)":""},isDownLoading:function(){return 3===this.downLoadType},downRotate:function(){return"rotate("+360*this.downRate+"deg)"},downText:function(){if(!this.mescroll)return"";switch(this.downLoadType){case 1:return this.mescroll.optDown.textInOffset;case 2:return this.mescroll.optDown.textOutOffset;case 3:return this.mescroll.optDown.textLoading;case 4:return this.mescroll.isDownEndSuccess?this.mescroll.optDown.textSuccess:0==this.mescroll.isDownEndSuccess?this.mescroll.optDown.textErr:this.mescroll.optDown.textInOffset;default:return this.mescroll.optDown.textInOffset}}},methods:{toPx:function(o){if("string"===typeof o)if(-1!==o.indexOf("px"))if(-1!==o.indexOf("rpx"))o=o.replace("rpx","");else{if(-1===o.indexOf("upx"))return Number(o.replace("px",""));o=o.replace("upx","")}else if(-1!==o.indexOf("%")){var e=Number(o.replace("%",""))/100;return this.windowHeight*e}return o?t.upx2px(Number(o)):0},emptyClick:function(){this.$emit("emptyclick",this.mescroll)},toTopClick:function(){this.mescroll.scrollTo(0,this.mescroll.optUp.toTop.duration),this.$emit("topclick",this.mescroll)}},created:function(){var o=this,e={down:{inOffset:function(){o.downLoadType=1},outOffset:function(){o.downLoadType=2},onMoving:function(t,e,n){o.downHight=n,o.downRate=e},showLoading:function(t,e){o.downLoadType=3,o.downHight=e},beforeEndDownScroll:function(t){return o.downLoadType=4,t.optDown.beforeEndDelay},endDownScroll:function(){o.downLoadType=4,o.downHight=0,o.downResetTimer&&(clearTimeout(o.downResetTimer),o.downResetTimer=null),o.downResetTimer=setTimeout((function(){4===o.downLoadType&&(o.downLoadType=0)}),300)},callback:function(t){o.$emit("down",t)}},up:{showLoading:function(){o.upLoadType=1},showNoMore:function(){o.upLoadType=2},hideUpScroll:function(t){o.upLoadType=t.optUp.hasNext?0:3},empty:{onShow:function(t){o.isShowEmpty=t}},toTop:{onShow:function(t){o.isShowToTop=t}},callback:function(t){o.$emit("up",t)}}};n.default.extend(e,i.default);var r=JSON.parse(JSON.stringify({down:o.down,up:o.up}
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'components/mescroll-uni/mescroll-body-create-component',
|
||
|
{
|
||
|
'components/mescroll-uni/mescroll-body-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('543d')['createComponent'](__webpack_require__("5563"))
|
||
|
})
|
||
|
},
|
||
|
[['components/mescroll-uni/mescroll-body-create-component']]
|
||
|
]);
|