(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/evan-switch/evan-switch"],{1060:function(e,t,n){"use strict";n.r(t);var i=n(1061),r=n(1063);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n(1065);var u,c=n(34),o=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"65d8598c",null,!1,i["components"],u);o.options.__file="components/evan-switch/evan-switch.vue",t["default"]=o.exports},1061:function(e,t,n){"use strict";n.r(t);var i=n(1062);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},1062:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return u})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return i}));var r=function(){var e=this,t=e.$createElement;e._self._c},a=!1,u=[];r._withStripped=!0},1063:function(e,t,n){"use strict";n.r(t);var i=n(1064),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=r.a},1064:function(e,t,n){"use strict";var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(13)),a={name:"EvanSwitch",props:{value:{type:[String,Number,Boolean],default:!1},activeColor:{type:String,default:"#108ee9"},inactiveColor:{type:String,default:"#fff"},size:{type:Number,default:30},disabled:{type:Boolean,default:!1},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},beforeChange:{type:Function,default:null},extraData:null,contextLevel:{type:Number,default:1}},computed:{switchHeight:function(){return this.size+"px"}},watch:{value:{immediate:!0,handler:function(e){this.currentValue=e}}},data:function(){return{currentValue:!1}},methods:{toggle:function(){var e=this;if(!this.disabled)if(this.beforeChange&&"function"===typeof this.beforeChange){for(var t=this,n=0;n<this.contextLevel;n++)t=t.$options.parent;var i=this.beforeChange(this.currentValue===this.activeValue?this.inactiveValue:this.activeValue,this.extraData,t);"object"===(0,r.default)(i)?i.then((function(){e.toggleValue()})).catch((function(){})):"boolean"===typeof i&&i&&this.toggleValue()}else this.toggleValue()},toggleValue:function(){this.currentValue=this.currentValue===this.activeValue?this.inactiveValue:this.activeValue,this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)}}};t.default=a},1065:function(e,t,n){"use strict";n.r(t);var i=n(1066),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=r.a},1066:function(e,t,n){}}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/evan-switch/evan-switch.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/evan-switch/evan-switch-create-component',
    {
        'components/evan-switch/evan-switch-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('2')['createComponent'](__webpack_require__(1060))
        })
    },
    [['components/evan-switch/evan-switch-create-component']]
]);
