12 lines
4.2 KiB
JavaScript
12 lines
4.2 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/hqs-popup/uni-popup"],{1128:function(t,n,e){"use strict";e.r(n);var o=e(1129),i=e(1131);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e(1133);var r,a=e(46),u=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"6aa3f584",null,!1,o["components"],r);u.options.__file="components/hqs-popup/uni-popup.vue",n["default"]=u.exports},1129:function(t,n,e){"use strict";e.r(n);var o=e(1130);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},1130:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return r})),e.d(n,"recyclableRender",(function(){return s})),e.d(n,"components",(function(){return o}));try{o={uniTransition:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-transition/components/uni-transition/uni-transition")]).then(e.bind(null,1044))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,n=t.$createElement;t._self._c},s=!1,r=[];i._withStripped=!0},1131:function(t,n,e){"use strict";e.r(n);var o=e(1132),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},1132:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){e.e("components/hqs-popup/uni-transition").then(function(){return resolve(e(1221))}.bind(null,e)).catch(e.oe)},i={name:"UniPopup",components:{uniTransition:o},props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},maskClick:{type:Boolean,default:!0}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0}}},watch:{type:{handler:function(t){switch(this.type){case"top":this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0};break;case"left":this.ani=["slide-left"],this.transClass={position:"fixed",top:0,left:0,bottom:0};break;case"right":this.ani=["slide-right"],this.transClass={position:"fixed",top:0,right:0,bottom:0};break;case"bottom":this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0};break;case"center":this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"};break}},immediate:!0}},created:function(){this.animation?this.duration=300:this.duration=0},methods:{clear:function(t){t.stopPropagation()},open:function(){var t=this;this.showPopup=!0,this.$nextTick((function(){clearTimeout(t.timer),t.timer=setTimeout((function(){t.showTrans=!0}),50)})),this.$emit("change",{show:!0})},close:function(t){var n=this;this.showTrans=!1,this.$nextTick((function(){clearTimeout(n.timer),n.timer=setTimeout((function(){n.$emit("change",{show:!1}),n.showPopup=!1}),300)}))},onTap:function(){this.maskClick&&this.close()}}};n.default=i},1133:function(t,n,e){"use strict";e.r(n);var o=e(1134),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},1134:function(t,n,e){}}]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/hqs-popup/uni-popup.js.map
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/hqs-popup/uni-popup-create-component',
|
|
{
|
|
'components/hqs-popup/uni-popup-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('2')['createComponent'](__webpack_require__(1128))
|
|
})
|
|
},
|
|
[['components/hqs-popup/uni-popup-create-component']]
|
|
]);
|