Newer
Older
smartwellapp / app / src / main / assets / static / js / 27.7966bded4509a3097ad6.js
Pengxh on 19 May 2021 4 KB first commit
webpackJsonp([27],{"1pCz":function(o,t){},HUyZ:function(o,t,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});p("Au9i");var n={mixins:[p("5g4Q").a],data:function(){return{popConf1:{flag:!1,position:"top",modal:!1,closeOnClickModal:!0},popConf2:{flag:!1,position:"bottom",modal:!0,closeOnClickModal:!0},popConf3:{flag:!1,position:"left",modal:!0,closeOnClickModal:!0},popConf4:{flag:!1,position:"left",modal:!0,closeOnClickModal:!0},popConf5:{flag:!1,position:"right",modal:!0,closeOnClickModal:!0},popConf6:{flag:!1,position:"middle",modal:!0,closeOnClickModal:!0},popConf7:{flag:!1,position:"right",modal:!1,closeOnClickModal:!0}}},methods:{toast:function(o){var t=this;switch(o){case"top":this.popConf1.flag=!0,setTimeout(function(){t.popConf1.flag=!1},2e3);break;case"bottom":this.popConf2.flag=!0,setTimeout(function(){t.popConf2.flag=!1},2e3);break;case"left1":this.popConf3.flag=!this.popConf3.flag;break;case"left2":this.popConf4.flag=!this.popConf4.flag;break;case"right2":this.popConf7.flag=!this.popConf7.flag;break;case"right1":this.popConf5.flag=!this.popConf5.flag;break;case"middle":this.popConf6.flag=!this.popConf6.flag}}}},a={render:function(){var o=this,t=o.$createElement,p=o._self._c||t;return p("transition",{attrs:{name:"slide"}},[p("div",{staticClass:"popup"},[p("mt-header",{staticClass:"header",attrs:{title:"Popup",fixed:o.headerConf.fixed}},[p("div",{attrs:{slot:"left"},slot:"left"},[p("mt-button",{attrs:{icon:"back"},on:{click:o.back}},[o._v("返回")])],1)]),o._v(" "),p("div",{staticClass:"content"},[p("mt-popup",{staticClass:"top-pop",attrs:{position:o.popConf1.position,modal:o.popConf1.modal},model:{value:o.popConf1.flag,callback:function(t){o.$set(o.popConf1,"flag",t)},expression:"popConf1.flag"}},[p("div",{staticClass:"top-pop-content"},[o._v("\n          这里是上方弹出pop内容\n        ")])]),o._v(" "),p("mt-popup",{staticClass:"top-pop",attrs:{position:o.popConf2.position,modal:o.popConf2.modal},model:{value:o.popConf2.flag,callback:function(t){o.$set(o.popConf2,"flag",t)},expression:"popConf2.flag"}},[p("div",{staticClass:"top-pop-content"},[o._v("\n          这里是下方弹出pop内容\n        ")])]),o._v(" "),p("mt-popup",{staticClass:"top-pop",attrs:{position:o.popConf3.position,modal:o.popConf3.modal},model:{value:o.popConf3.flag,callback:function(t){o.$set(o.popConf3,"flag",t)},expression:"popConf3.flag"}},[p("div",{staticClass:"top-pop-content"},[o._v("\n          这里是左边弹出pop内容\n        ")])]),o._v(" "),p("mt-popup",{staticClass:"left-pop",attrs:{position:o.popConf4.position,modal:o.popConf4.modal},model:{value:o.popConf4.flag,callback:function(t){o.$set(o.popConf4,"flag",t)},expression:"popConf4.flag"}},[p("div",{staticClass:"top-pop-content"},[o._v("\n          这里是左边弹出pop内容\n        ")])]),o._v(" "),p("mt-popup",{staticClass:"top-pop",attrs:{position:o.popConf5.position,modal:o.popConf5.modal},model:{value:o.popConf5.flag,callback:function(t){o.$set(o.popConf5,"flag",t)},expression:"popConf5.flag"}},[p("div",{staticClass:"top-pop-content"},[o._v("\n          这里是右边弹出pop内容\n        ")])]),o._v(" "),p("mt-popup",{staticClass:"middle-pop",attrs:{position:o.popConf6.position,modal:o.popConf6.modal},model:{value:o.popConf6.flag,callback:function(t){o.$set(o.popConf6,"flag",t)},expression:"popConf6.flag"}},[p("div",{staticClass:"middle-pop-content"},[o._v("\n          这里是中部弹出pop内容这里是中部弹出pop内容这里是中部弹出pop内容\n        ")])]),o._v(" "),p("mt-popup",{staticClass:"right-pop",class:{active:o.popConf7.flag},attrs:{modal:o.popConf7.modal,position:o.popConf7.position},model:{value:o.popConf7.flag,callback:function(t){o.$set(o.popConf7,"flag",t)},expression:"popConf7.flag"}},[p("div",{staticClass:"right-pop-content"},[p("mt-button",{staticClass:"right2-btn",attrs:{type:"default"},on:{click:function(t){return o.toast("right2")}}},[o._v("关闭")])],1)]),o._v(" "),p("mt-button",{attrs:{type:"default"},on:{click:function(t){return o.toast("top")}}},[o._v("上方弹出")]),o._v(" "),p("mt-button",{attrs:{type:"default"},on:{click:function(t){return o.toast("bottom")}}},[o._v("下方弹出")]),o._v(" "),p("mt-button",{attrs:{type:"default"},on:{click:function(t){return o.toast("left1")}}},[o._v("左边弹出样式1")]),o._v(" "),p("mt-button",{attrs:{type:"default"},on:{click:function(t){return o.toast("left2")}}},[o._v("左边弹出样式2")]),o._v(" "),p("mt-button",{attrs:{type:"default"},on:{click:function(t){return o.toast("right1")}}},[o._v("右边弹出样式1")]),o._v(" "),p("mt-button",{attrs:{type:"default"},on:{click:function(t){return o.toast("right2")}}},[o._v("右边弹出样式2")]),o._v(" "),p("mt-button",{attrs:{type:"default"},on:{click:function(t){return o.toast("middle")}}},[o._v("中部弹出")])],1)],1)])},staticRenderFns:[]};var l=p("VU/8")(n,a,!1,function(o){p("1pCz")},"data-v-44a02a3a",null);t.default=l.exports}});
//# sourceMappingURL=27.7966bded4509a3097ad6.js.map