2025-04-01 09:03:51 +08:00

11 lines
3.3 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["node-modules/uview-ui/components/u-image/u-image"],{2825:function(i,n,t){},"3a86":function(i,n,t){"use strict";(function(i){var r=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t("3838")),e={name:"u-image",mixins:[i.$u.mpMixin,i.$u.mixin,o.default],data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{},show:!1}},watch:{src:{immediate:!0,handler:function(i){i?(this.isError=!1,this.loading=!0):this.isError=!0}}},computed:{wrapStyle:function(){var n={};return n.width=this.$u.addUnit(this.width),n.height=this.$u.addUnit(this.height),n.borderRadius="circle"==this.shape?"10000px":i.$u.addUnit(this.radius),n.overflow=this.borderRadius>0?"hidden":"visible",i.$u.deepMerge(n,i.$u.addStyle(this.customStyle))}},mounted:function(){this.show=!0},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(i){this.loading=!1,this.isError=!0,this.$emit("error",i)},onLoadHandler:function(i){this.loading=!1,this.isError=!1,this.$emit("load",i),this.removeBgColor()},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};n.default=e}).call(this,t("df3c")["default"])},"4ecb":function(i,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return e})),t.d(n,"a",(function(){return r}));var r={uTransition:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-transition/u-transition")]).then(t.bind(null,"0623"))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"3fd2"))}},o=function(){var i=this,n=i.$createElement,t=(i._self._c,i.__get_style([i.wrapStyle,i.backgroundStyle])),r=i.isError||"circle"==i.shape?null:i.$u.addUnit(i.radius),o=i.isError?null:i.$u.addUnit(i.width),e=i.isError?null:i.$u.addUnit(i.height),u=i.showLoading&&i.loading&&"circle"!=i.shape?i.$u.addUnit(i.radius):null,d=i.showLoading&&i.loading?i.$u.addUnit(i.width):null,a=i.showLoading&&i.loading?i.$u.addUnit(i.height):null,s=i.showError&&i.isError&&!i.loading&&"circle"!=i.shape?i.$u.addUnit(i.radius):null,l=i.showError&&i.isError&&!i.loading?i.$u.addUnit(i.width):null,c=i.showError&&i.isError&&!i.loading?i.$u.addUnit(i.height):null;i.$mp.data=Object.assign({},{$root:{s0:t,g0:r,g1:o,g2:e,g3:u,g4:d,g5:a,g6:s,g7:l,g8:c}})},e=[]},8229:function(i,n,t){"use strict";t.r(n);var r=t("3a86"),o=t.n(r);for(var e in r)["default"].indexOf(e)<0&&function(i){t.d(n,i,(function(){return r[i]}))}(e);n["default"]=o.a},b708:function(i,n,t){"use strict";t.r(n);var r=t("4ecb"),o=t("8229");for(var e in o)["default"].indexOf(e)<0&&function(i){t.d(n,i,(function(){return o[i]}))}(e);t("f83d");var u=t("828b"),d=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"6523ae2d",null,!1,r["a"],void 0);n["default"]=d.exports},f83d:function(i,n,t){"use strict";var r=t("2825"),o=t.n(r);o.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'node-modules/uview-ui/components/u-image/u-image-create-component',
{
'node-modules/uview-ui/components/u-image/u-image-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("b708"))
})
},
[['node-modules/uview-ui/components/u-image/u-image-create-component']]
]);