webpackJsonp([10],{"2zX2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("Au9i"),a={mixins:[n("5g4Q").a],data:function(){return{messageConf:{title:"自定义的弹出框",message:"自定义的弹出框内容",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:"确认按钮文本",confirmButtonHighlight:!1,confirmButtonClass:"confirm",cancelButtonText:"取消按钮文本",cancelButtonHighlight:!1,cancelButtonClass:"cancel",closeOnClickModal:!0,showInput:!0,inputType:"text",inputValue:"",inputPlaceholder:"input默认值"}}},methods:{toast:function(t){var e=this;switch(t){case"alert":o.MessageBox.alert("操作成功").then(function(t){console.log(t)});break;case"confirm":o.MessageBox.confirm("确定执行此操作?","温馨提示").then(function(t){console.log(t)});break;case"prompt":o.MessageBox.prompt("请输入姓名").then(function(t){var e=t.value,n=t.action;console.log(e),console.log(n)});break;case"custom":Object(o.MessageBox)(this.messageConf).then(function(t){t.value,t.action;console.log(e.messageConf.inputValue)})}}}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"slide"}},[n("div",{staticClass:"message-box"},[n("mt-header",{staticClass:"header",attrs:{title:"MessageBox",fixed:t.headerConf.fixed}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("mt-button",{attrs:{icon:"back"},on:{click:t.back}},[t._v("返回")])],1)]),t._v(" "),n("div",{staticClass:"content"},[n("mt-button",{attrs:{type:"default"},on:{click:function(e){return t.toast("alert")}}},[t._v("alert")]),t._v(" "),n("mt-button",{attrs:{type:"default"},on:{click:function(e){return t.toast("confirm")}}},[t._v("confirm")]),t._v(" "),n("mt-button",{attrs:{type:"default"},on:{click:function(e){return t.toast("prompt")}}},[t._v("prompt")]),t._v(" "),n("mt-button",{attrs:{type:"default"},on:{click:function(e){return t.toast("custom")}}},[t._v("自定义")])],1)],1)])},staticRenderFns:[]};var c=n("VU/8")(a,s,!1,function(t){n("kHA9")},"data-v-e03336e2",null);e.default=c.exports},kHA9:function(t,e){}});
//# sourceMappingURL=10.33d28c0c2354a661b8bf.js.map