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
4.9 KiB

2 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-popup/u-popup"],{2675:function(t,e,n){"use strict";n.r(e);var i=n("2977"),o=n("d8e9");for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("8244");var u,r=n("f0c5"),a=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"4b631af3",null,!1,i["a"],u);e["default"]=a.exports},2977:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uMask:function(){return n.e("uview-ui/components/u-mask/u-mask").then(n.bind(null,"99b6"))},uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,"a69e"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.visibleSync?t.__get_style([t.customStyle,{zIndex:t.uZindex-1}]):null),i=t.visibleSync?t.__get_style([t.style]):null,o=t.visibleSync&&"center"==t.mode?t.__get_style([t.centerStyle]):null;t.$mp.data=Object.assign({},{$root:{s0:n,s1:i,s2:o}})},s=[]},8244:function(t,e,n){"use strict";var i=n("f4fb"),o=n.n(i);o.a},d8e9:function(t,e,n){"use strict";n.r(e);var i=n("fdc8"),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},f4fb:function(t,e,n){},fdc8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-popup",props:{show:{type:Boolean,default:!1},mode:{type:String,default:"left"},mask:{type:Boolean,default:!0},length:{type:[Number,String],default:"auto"},zoom:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},customStyle:{type:Object,default:function(){return{}}},value:{type:Boolean,default:!1},popup:{type:Boolean,default:!0},borderRadius:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:""},closeable:{type:Boolean,default:!1},closeIcon:{type:String,default:"close"},closeIconPos:{type:String,default:"top-right"},closeIconColor:{type:String,default:"#909399"},closeIconSize:{type:[String,Number],default:"30"},width:{type:String,default:""},height:{type:String,default:""},negativeTop:{type:[String,Number],default:0},maskCustomStyle:{type:Object,default:function(){return{}}},duration:{type:[String,Number],default:250}},data:function(){return{visibleSync:!1,showDrawer:!1,timer:null,closeFromInner:!1}},computed:{style:function(){var t={};if("left"==this.mode||"right"==this.mode?t={width:this.width?this.getUnitValue(this.width):this.getUnitValue(this.length),height:"100%",transform:"translate3D(".concat("left"==this.mode?"-100%":"100%",",0px,0px)")}:"top"!=this.mode&&"bottom"!=this.mode||(t={width:"100%",height:this.height?this.getUnitValue(this.height):this.getUnitValue(this.length),transform:"translate3D(0px,".concat("top"==this.mode?"-100%":"100%",",0px)")}),t.zIndex=this.uZindex,this.borderRadius){switch(this.mode){case"left":t.borderRadius="0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0");break;case"top":t.borderRadius="0 0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx");break;case"right":t.borderRadius="".concat(this.borderRadius,"rpx 0 0 ").concat(this.borderRadius,"rpx");break;case"bottom":t.borderRadius="".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0 0");break;default:}t.overflow="hidden"}return this.duration&&(t.transition="all ".concat(this.duration/1e3,"s linear")),t},centerStyle:function(){var t={};return t.width=this.width?this.getUnitValue(this.width):this.getUnitValue(this.length),t.height=this.height?this.getUnitValue(this.height):"auto",t.zIndex=this.uZindex,t.marginTop="-".concat(this.$u.addUnit(this.negativeTop)),this.borderRadius&&(t.borderRadius="".concat(this.borderRadius,"rpx"),t.overflow="hidden"),t},uZindex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},watch:{value:function(t){t?this.open():this.closeFromInner||this.close(),this.closeFromInner=!1}},mounted:function(){this.value&&this.open()},methods:{getUnitValue:function(t){return/(%|px|rpx|auto)$/.test(t)?t:t+"rpx"},maskClick:functio
2 years ago
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uview-ui/components/u-popup/u-popup-create-component',
{
'uview-ui/components/u-popup/u-popup-create-component':(function(module, exports, __webpack_require__){
2 years ago
__webpack_require__('543d')['createComponent'](__webpack_require__("2675"))
2 years ago
})
},
[['uview-ui/components/u-popup/u-popup-create-component']]
]);