yunshangxie/unpackage/dist/build/mp-weixin/tuniao-ui/components/tn-popup/tn-popup.js

11 lines
5.6 KiB
JavaScript
Raw Normal View History

2024-05-11 18:14:49 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["tuniao-ui/components/tn-popup/tn-popup"],{"3b24":function(t,e,n){"use strict";n.r(e);var i=n("6b36"),o=n("eff5");for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("64ac");var r=n("f0c5"),l=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"46165886",null,!1,i["a"],void 0);e["default"]=l.exports},"4e36":function(t,e,n){},"64ac":function(t,e,n){"use strict";var i=n("4e36"),o=n.n(i);o.a},"6b36":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.visibleSync?t.__get_style([t.customStyle,t.popupStyle,{zIndex:t.elZIndex-1}]):null),i=t.visibleSync?t.__get_style([t.contentStyle]):null,o=t.visibleSync&&"center"===t.mode?t.__get_style([t.centerStyle]):null,s=t.visibleSync&&"center"===t.mode&&t.closeBtn?t.__get_style([t.closeBtnStyle,{zIndex:t.elZIndex}]):null,r=t.visibleSync&&"center"!==t.mode&&t.closeBtn?t.__get_style([t.closeBtnStyle]):null;t._isMounted||(t.e0=function(t){t.stopPropagation(),t.preventDefault()}),t.$mp.data=Object.assign({},{$root:{s0:n,s1:i,s2:o,s3:s,s4:r}})},o=[]},b662:function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("16ca")),s={mixins:[o.default],name:"tn-popup",props:{value:{type:Boolean,default:!1},mode:{type:String,default:"left"},mask:{type:Boolean,default:!0},length:{type:[Number,String],default:"auto"},width:{type:String,default:""},height:{type:String,default:""},zoom:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseable:{type:Boolean,default:!0},customStyle:{type:Object,default:function(){return{}}},borderRadius:{type:Number,default:0},zIndex:{type:Number,default:0},closeBtn:{type:Boolean,default:!1},closeBtnIcon:{type:String,default:"close"},closeBtnPosition:{type:String,default:"top-right"},closeIconColor:{type:String,default:"#AAAAAA"},closeIconSize:{type:Number,default:30},negativeTop:{type:Number,default:0},marginTop:{type:Number,default:0},popup:{type:Boolean,default:!0}},computed:{popupStyle:function(){var t={};return"top"!==this.mode&&"left"!==this.mode&&"right"!==this.mode||!this.marginTop||(t.marginTop=this.$tn.string.getLengthUnitValue(this.marginTop,"px")),t},contentStyle:function(){var t={};if("left"===this.mode||"right"===this.mode?t={width:this.width?this.$tn.string.getLengthUnitValue(this.width):this.$tn.string.getLengthUnitValue(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.$tn.string.getLengthUnitValue(this.height):this.$tn.string.getLengthUnitValue(this.length),transform:"translate3D(0px, ".concat("top"===this.mode?"-100%":"100%",", 0px)")}),t.zIndex=this.elZIndex,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}t.overflow="hidden"}return this.backgroundColorStyle&&"center"!==this.mode&&(t.backgroundColor=this.backgroundColorStyle),t},centerStyle:function(){var t={};return t.width=this.width?this.$tn.string.getLengthUnitValue(this.width):this.$tn.string.getLengthUnitValue(this.length),t.height=this.height?this.$tn.string.getLengthUnitValue(this.height):"auto",t.zIndex=this.elZIndex,this.negativeTop&&(t.marginTop="-".concat(this.$tn.string.getLengthUnitValue(this.negativeTop))),this.borderRadius&&(t.borderRadius="".concat(this.borderRadius,"rpx"),t.overflow="hidden"),this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),t},closeBtnStyle:function(){var t={};return this.closeIconColor&&(t.co
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'tuniao-ui/components/tn-popup/tn-popup-create-component',
{
'tuniao-ui/components/tn-popup/tn-popup-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("3b24"))
})
},
[['tuniao-ui/components/tn-popup/tn-popup-create-component']]
]);