Switch: fix change event parameter

pull/4724/head
Leopoldthecoder 2017-05-05 11:31:45 +08:00 committed by 杨奕
parent cbb3fa095f
commit f2fee567b9
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@
},
methods: {
handleChange(event) {
this.$emit('change', event.currentTarget.checked);
this.$emit('change', event.currentTarget.checked ? this.onValue : this.offValue);
},
setBackgroundColor() {
let newColor = this.checked ? this.onColor : this.offColor;