From b37dfe86d568c400a362a57de1d9bc922a378878 Mon Sep 17 00:00:00 2001 From: AmyFoxFN Date: Tue, 6 Feb 2018 18:01:10 +0800 Subject: [PATCH] (switch): bug #102 --- src/components/switch/switch.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/switch/switch.vue b/src/components/switch/switch.vue index 865b2120..98ed0a11 100644 --- a/src/components/switch/switch.vue +++ b/src/components/switch/switch.vue @@ -29,7 +29,10 @@ } }, watch: { - checkboxValue: function (newVal) { + value (newVal) { + this.checkboxValue = newVal + }, + checkboxValue (newVal) { this.$emit(EVENT_INPUT, newVal) } } -- GitLab