(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d238278"],{fdbf:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"actionSheet"},on:{"after-leave":t.afterLeave}},[t.show?n("div",{staticClass:"actionSheet"},[n("div",{staticClass:"actionSheet__cover",on:{click:t.deactivate,touchmove:function(t){t.preventDefault()}}}),"1"===t.contentType?n("div",{staticClass:"actionSheet__content"},[n("div",{staticClass:"actionSheet__header"},[t.title?n("div",{staticClass:"actionSheet__title",domProps:{innerHTML:t._s(t.title)}}):t._e(),n("div",{staticClass:"actionSheet__list"},t._l(t.buttons,function(e,i){return n("div",{key:"button"+i,staticClass:"actionSheet__list-item actionSheet__btn",style:e.style,on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.onClick(e,i)}}},[t._v(t._s(e.text))])}),0)]),n("div",{staticClass:"actionSheet__cancel-btn",on:{click:t.deactivate}},[t._v("取消")])]):t._e(),"2"===t.contentType?n("div",{staticClass:"actionSheet__content actionSheet__content2"},[n("div",{staticClass:"actionSheet__header2 mui-flex jcsb aic"},[t._v(t._s(t.title)+" "),n("span",{on:{click:t.deactivate}})]),n("ul",{staticClass:"actionSheet__list"},t._l(t.buttons,function(e,i){return n("li",{key:i,on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.onClick(e,i)}}},[n("div",{staticClass:"mui-flex jcsb aic actionSheet__list-con"},[n("span",{style:e.leftStyle},[t._v(t._s(e.leftText))]),n("span",{style:e.rightStyle},[t._v(t._s(e.rightText))])]),n("div",{staticClass:"hairlines"})])}),0)]):t._e()]):t._e()])},s=[],o=(n("6e26"),{name:"ActionSheet",props:{contentType:{type:String,default:"1"},actionShow:{type:Boolean,default:!1},title:{type:String,default:""},buttons:{type:Array,default:function(){return[]}}},watch:{actionShow:{handler:function(t,e){this.show=t,this.componentsTrigger=!0}}},data:function(){return{show:!1,componentsTrigger:!1}},methods:{defer:function(){var t,e,n;return t=new Promise(function(t,i){e=t,n=i}),{promise:t,resolve:e,reject:n}},activate:function(){return this._deferred=this.defer(),this.show=!0,this._deferred.promise},deactivate:function(){this.show=!1,this.componentsTrigger&&this.$emit("update:actionShow",!1)},onClick:function(t,e){t.handle&&!this.componentsTrigger&&t.handle({button:t,index:e}),this.componentsTrigger?(this.$emit("update:actionShow",!1),this.$emit("onActionSheetClick",{button:t,index:e})):this._deferred.resolve({button:t,index:e}),this.show=!1},afterLeave:function(){this.componentsTrigger||(this.$destroy(),this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el))}}}),a=o,c=n("6691"),r=Object(c["a"])(a,i,s,!1,null,null,null);e["default"]=r.exports}}]);
//# sourceMappingURL=chunk-2d238278.ca96775a.js.map