diff --git a/packages/switch/src/component.vue b/packages/switch/src/component.vue index aa2c38c47..407ae7d88 100644 --- a/packages/switch/src/component.vue +++ b/packages/switch/src/component.vue @@ -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;