(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/base/easy-loadimage"],{"0dff":function(t,i,n){"use strict";n.r(i);var e=n("cbce"),o=n("74c9");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(i,t,(function(){return o[t]}))}(r);n("6315");var a=n("828b"),u=Object(a["a"])(o["default"],e["b"],e["c"],!1,null,"1cd9f22e",null,!1,e["a"],void 0);i["default"]=u.exports},"48c3":function(t,i,n){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n("0cce");function o(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var i=16*Math.random()|0,n="x"==t?i:3&i|8;return n.toString(16)}))}var r={name:"easyLoadimage",props:{imageSrc:{type:String||null,default:function(){return""}},mode:{type:String,default:"aspectFill"},loadingMode:{type:String,default:"looming-gray"},openTransition:{type:Boolean,default:!0},viewHeight:{type:Number,default:function(){return t.getSystemInfoSync().windowHeight}},width:{type:String,default:""},height:{type:String,default:""},radius:{type:String,default:""}},data:function(){var i=this;return{urlDomain:this.$Cache.get("imgHost"),uid:"uid-"+o(),loadImg:!1,showImg:!1,isLoadError:!1,borderLoaded:0,showTransition:!1,scrollFn:(0,e.throttle)((function(){if(!i.loadImg&&!i.isLoadError){var n=i.uid,e=t.createSelectorQuery().in(i);e.select("#"+n).boundingClientRect((function(t){t&&t.top-i.viewHeight<0&&(i.loadImg=!!i.imageSrc,i.isLoadError=!i.loadImg)})).exec()}}),200)}},computed:{boxStyle:function(){return{width:this.width,height:this.height,borderRadius:this.radius}},imageRadius:function(){if(this.radius)return{"border-radius":this.radius}}},methods:{init:function(){this.$nextTick(this.onScroll)},handleBorderLoad:function(){this.borderLoaded=1},handleBorderError:function(){this.borderLoaded=2},handleImgLoad:function(t){var i=this;this.showImg=!0,setTimeout((function(){i.showTransition=!0}),50)},handleImgError:function(t){this.isLoadError=!0},onScroll:function(){this.scrollFn()}},mounted:function(){this.init(),t.$on("scroll",this.scrollFn),this.onScroll()},beforeDestroy:function(){t.$off("scroll",this.scrollFn)}};i.default=r}).call(this,n("df3c")["default"])},6315:function(t,i,n){"use strict";var e=n("c4fa"),o=n.n(e);o.a},"74c9":function(t,i,n){"use strict";n.r(i);var e=n("48c3"),o=n.n(e);for(var r in e)["default"].indexOf(r)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(r);i["default"]=o.a},c4fa:function(t,i,n){},cbce:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return o})),n.d(i,"a",(function(){}));var e=function(){var t=this.$createElement,i=(this._self._c,this.__get_style([this.boxStyle])),n=this.loadImg&&!this.isLoadError?this.__get_style([this.imageRadius]):null;this.$mp.data=Object.assign({},{$root:{s0:i,s1:n}})},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/base/easy-loadimage-create-component',
    {
        'components/base/easy-loadimage-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("0dff"))
        })
    },
    [['components/base/easy-loadimage-create-component']]
]);
