12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-popup/u-popup"],{"2f21":function(t,e,o){"use strict";o.r(e);var n=o("fb01"),i=o("c3f7");for(var u in i)["default"].indexOf(u)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(u);o("4504");var r,s=o("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"de594a70",null,!1,n["a"],r);e["default"]=c.exports},4504:function(t,e,o){"use strict";var n=o("518f"),i=o.n(n);i.a},"518f":function(t,e,o){},c3f7:function(t,e,o){"use strict";o.r(e);var n=o("f2fc"),i=o.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(u);e["default"]=i.a},f2fc:function(t,e,o){"use strict";(function(t){var n=o("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("06ab")),u={name:"u-popup",mixins:[t.$u.mpMixin,t.$u.mixin,i.default],data:function(){return{overlayDuration:this.duration+50}},watch:{show:function(t,e){if(!0===t){var o=this.$children;this.retryComputedComponentRect(o)}}},computed:{transitionStyle:function(){var e={zIndex:this.zIndex,position:"fixed",display:"flex"};return e[this.mode]=0,"left"===this.mode||"right"===this.mode?t.$u.deepMerge(e,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?t.$u.deepMerge(e,{left:0,right:0}):"center"===this.mode?t.$u.deepMerge(e,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle:function(){var e={},o=t.$u.sys();o.safeAreaInsets;if("center"!==this.mode&&(e.flex=1),this.bgColor&&(e.backgroundColor=this.bgColor),this.round){var n=t.$u.addUnit(this.round);"top"===this.mode?(e.borderBottomLeftRadius=n,e.borderBottomRightRadius=n):"bottom"===this.mode?(e.borderTopLeftRadius=n,e.borderTopRightRadius=n):"center"===this.mode&&(e.borderRadius=n)}return t.$u.deepMerge(e,t.$u.addStyle(this.customStyle))},position:function(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},methods:{overlayClick:function(){this.closeOnClickOverlay&&this.$emit("close")},close:function(t){this.$emit("close")},afterEnter:function(){this.$emit("open")},clickHandler:function(){"center"===this.mode&&this.overlayClick(),this.$emit("click")},retryComputedComponentRect:function(e){for(var o=this,n=["u-calendar-month","u-album","u-collapse-item","u-dropdown","u-index-item","u-index-list","u-line-progress","u-list-item","u-rate","u-read-more","u-row","u-row-notice","u-scroll-list","u-skeleton","u-slider","u-steps-item","u-sticky","u-subsection","u-swipe-action-item","u-tabbar","u-tabs","u-tooltip"],i=function(i){var u=e[i],r=u.$children;n.includes(u.$options.name)&&"function"===typeof(null===u||void 0===u?void 0:u.init)&&t.$u.sleep(50).then((function(){u.init()})),r.length&&o.retryComputedComponentRect(r)},u=0;u<e.length;u++)i(u)}}};e.default=u}).call(this,o("543d")["default"])},fb01:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return u})),o.d(e,"a",(function(){return n}));var n={uOverlay:function(){return Promise.all([o.e("common/vendor"),o.e("uview-ui/components/u-overlay/u-overlay")]).then(o.bind(null,"5b7f"))},uTransition:function(){return Promise.all([o.e("common/vendor"),o.e("uview-ui/components/u-transition/u-transition")]).then(o.bind(null,"c714"))},uStatusBar:function(){return Promise.all([o.e("common/vendor"),o.e("uview-ui/components/u-status-bar/u-status-bar")]).then(o.bind(null,"f1a6"))},uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("uview-ui/components/u-icon/u-icon")]).then(o.bind(null,"01eb"))},uSafeBottom:function(){return Promise.all([o.e("common/vendor"),o.e("uview-ui/components/u-safe-bottom/u-safe-bottom")]).then(o.bind(null,"492f"))}},i=function(){var t=this,e=t.$createElement,o=(t._self._c,t.__get_style([t.contentStyle]));t.$mp.data=Object.assign({},{$root:{s0:o}})},u=[]}}]);
- ;(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__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("2f21"))
- })
- },
- [['uview-ui/components/u-popup/u-popup-create-component']]
- ]);
|