You cannot 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.4 KiB
JavaScript
11 lines
4.4 KiB
JavaScript
1 month ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["node-modules/uview-ui/components/u-popup/u-popup"],{"13fe":function(e,t,o){"use strict";(function(e){var n=o("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o("a9ed")),u={name:"u-popup",mixins:[e.$u.mpMixin,e.$u.mixin,i.default],data:function(){return{overlayDuration:this.duration+50}},watch:{show:function(e,t){if(!0===e){var o=this.$children;this.retryComputedComponentRect(o)}}},computed:{transitionStyle:function(){var t={zIndex:this.zIndex,position:"fixed",display:"flex"};return t[this.mode]=0,"left"===this.mode||"right"===this.mode?e.$u.deepMerge(t,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?e.$u.deepMerge(t,{left:0,right:0}):"center"===this.mode?e.$u.deepMerge(t,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle:function(){var t={},o=e.$u.sys();o.safeAreaInsets;if("center"!==this.mode&&(t.flex=1),this.bgColor&&(t.backgroundColor=this.bgColor),this.round){var n=e.$u.addUnit(this.round);"top"===this.mode?(t.borderBottomLeftRadius=n,t.borderBottomRightRadius=n):"bottom"===this.mode?(t.borderTopLeftRadius=n,t.borderTopRightRadius=n):"center"===this.mode&&(t.borderRadius=n)}return e.$u.deepMerge(t,e.$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(e){this.$emit("close")},afterEnter:function(){this.$emit("open")},clickHandler:function(){"center"===this.mode&&this.overlayClick(),this.$emit("click")},retryComputedComponentRect:function(t){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=t[i],r=u.$children;n.includes(u.$options.name)&&"function"===typeof(null===u||void 0===u?void 0:u.init)&&e.$u.sleep(50).then((function(){u.init()})),r.length&&o.retryComputedComponentRect(r)},u=0;u<t.length;u++)i(u)}}};t.default=u}).call(this,o("543d")["default"])},1686:function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return u})),o.d(t,"a",(function(){return n}));var n={uOverlay:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-overlay/u-overlay")]).then(o.bind(null,"8f08"))},uTransition:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-transition/u-transition")]).then(o.bind(null,"6daa"))},uStatusBar:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-status-bar/u-status-bar")]).then(o.bind(null,"1cb6"))},uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(o.bind(null,"da7f"))},uSafeBottom:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom")]).then(o.bind(null,"1c1f"))}},i=function(){var e=this.$createElement,t=(this._self._c,this.__get_style([this.contentStyle]));this.$mp.data=Object.assign({},{$root:{s0:t}})},u=[]},"8efa":function(e,t,o){},ce8f:function(e,t,o){"use strict";o.r(t);var n=o("13fe"),i=o.n(n);for(var u in n)["default"].indexOf(u)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(u);t["default"]=i.a},d06f:function(e,t,o){"use strict";var n=o("8efa"),i=o.n(n);i.a},d656:function(e,t,o){"use strict";o.r(t);var n=o("1686"),i=o("ce8f");for(var u in i)["default"].indexOf(u)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(u);o("d06f");var r=o("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"2496386f",null,!1,n["a"],void 0);t["default"]=s.exports}}]);
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'node-modules/uview-ui/components/u-popup/u-popup-create-component',
|
||
|
{
|
||
|
'node-modules/uview-ui/components/u-popup/u-popup-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('543d')['createComponent'](__webpack_require__("d656"))
|
||
|
})
|
||
|
},
|
||
|
[['node-modules/uview-ui/components/u-popup/u-popup-create-component']]
|
||
|
]);
|