11 lines
3.0 KiB
JavaScript
11 lines
3.0 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-mask/u-mask"],{"04fa":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,this.__get_style([this.maskStyle,this.zoomStyle]));this._isMounted||(this.e0=function(t){t.stopPropagation(),t.preventDefault()}),this.$mp.data=Object.assign({},{$root:{s0:e}})},r=[]},"27e9":function(t,e,n){"use strict";var o=n("e0d9"),r=n.n(o);r.a},"4cc2":function(t,e,n){"use strict";var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("9523"));function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={name:"u-mask",props:{show:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:""},customStyle:{type:Object,default:function(){return{}}},zoom:{type:Boolean,default:!0},duration:{type:[Number,String],default:300},maskClickAble:{type:Boolean,default:!0}},data:function(){return{zoomStyle:{transform:""},scale:"scale(1.2, 1.2)"}},watch:{show:function(t){t&&this.zoom?this.zoomStyle.transform="scale(1, 1)":!t&&this.zoom&&(this.zoomStyle.transform=this.scale)}},computed:{maskStyle:function(){var t={backgroundColor:"rgba(0, 0, 0, 0.6)"};return this.show?t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.mask:t.zIndex=-1,t.transition="all ".concat(this.duration/1e3,"s ease-in-out"),Object.keys(this.customStyle).length&&(t=i(i({},t),this.customStyle)),t}},methods:{click:function(){this.maskClickAble&&this.$emit("click")}}};e.default=s},6711:function(t,e,n){"use strict";n.r(e);var o=n("04fa"),r=n("9fa0");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("27e9");var i=n("f0c5"),s=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"4a660e38",null,!1,o["a"],void 0);e["default"]=s.exports},"9fa0":function(t,e,n){"use strict";n.r(e);var o=n("4cc2"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},e0d9:function(t,e,n){}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'uview-ui/components/u-mask/u-mask-create-component',
|
|
{
|
|
'uview-ui/components/u-mask/u-mask-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("6711"))
|
|
})
|
|
},
|
|
[['uview-ui/components/u-mask/u-mask-create-component']]
|
|
]);
|