(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39dd66da","chunk-2d0ab68f"],{"14c9":function(t,e,n){"use strict";n.r(e),e["default"]={name:"Content",functional:!0,props:{render:Function},render:function(t,e){return e.props.render(t)}}},"26ae":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.childShow?n("div",{staticClass:"modal"},[t.maskClosable?n("div",{staticClass:"modal__mask",on:{click:function(e){return e.stopPropagation(),t.tapCancel(e)},touchmove:function(t){t.preventDefault()}}}):n("div",{staticClass:"modal__mask",on:{touchmove:function(t){t.preventDefault()}}}),n("div",{staticClass:"modal__main"},[n("div",{staticClass:"modal__holder"},[t.title?n("div",{staticClass:"modal__title"},[t._v(t._s(t.title))]):t._e(),n("div",{staticClass:"modal__content ost"},[n("div",{staticClass:"modal__content-inr",class:[t.textAlignClass,{"has-title":t.hasTitle}]},["function"===typeof t.content?n("Content",{attrs:{render:t.content}}):[t._t("default",[t._v("\n              "+t._s("string"===typeof t.content?t.content:t.content.text)+"\n            ")])]],2)])]),n("div",{staticClass:"hairlines"}),n("div",{staticClass:"modal__btn mui-flex aic"},[t.showCancel?n("div",{staticClass:"btn mui-flex__cell txt-ovh",on:{click:t.tapCancel}},[t._v(t._s(t.cancelText))]):t._e(),n("div",{staticClass:"hairlines-y"}),n("div",{staticClass:"btn mui-flex__cell txt-ovh",on:{click:t.tapConfirm}},[t._v(t._s(t.confirmText))])])])]):t._e()},a=[],o=n("14c9"),c={name:"Modal",components:{Content:o["default"]},props:{show:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object,Function],default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确定"},maskClosable:{type:Boolean,default:!1},confirmAutoHide:{type:Boolean,default:!0},cancelAutoHide:{type:Boolean,default:!0}},data:function(){return{childShow:!1,textAlignClass:"",alignMap:{center:"tc",left:"",right:"tr"}}},created:function(){console.log("modal-created :")},deactivated:function(){console.log("deactivated")},destroyed:function(){console.log("destroyed")},computed:{hasTitle:function(){return""!==this.title.trim()}},watch:{show:{handler:function(t,e){this.childShow=t},immediate:!0},content:{handler:function(t,e){"string"!==typeof this.content&&(this.textAlignClass=this.alignMap[this.content.textAlign])},immediate:!0}},methods:{tapCancel:function(){this.$emit("on-cancel"),this.callBack({cancel:!0}),this.cancelAutoHide&&this.hideModal()},tapConfirm:function(){this.$emit("on-confirm"),this.callBack({confirm:!0}),this.confirmAutoHide&&this.hideModal()},hideModal:function(){this.childShow=!1,this.$emit("update:show",!1)},callBack:function(t){var e=t.confirm,n=void 0!==e&&e,i=t.cancel,a=void 0!==i&&i;this.success&&this.success({confirm:n,cancel:a})}}},l=c,s=n("6691"),d=Object(s["a"])(l,i,a,!1,null,null,null);e["default"]=d.exports}}]);
//# sourceMappingURL=chunk-39dd66da.8bb912cf.js.map