Commit 8df36a0a03cd67325492b7ac1648b3bafd2fcab7

Authored by 梁灏
1 parent f65e9be5

update Switch

update Switch
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/components/switch/switch.vue
@@ -50,6 +50,7 @@ @@ -50,6 +50,7 @@
50 50
51 this.checked = !this.checked; 51 this.checked = !this.checked;
52 this.$emit('on-change', this.checked); 52 this.$emit('on-change', this.checked);
  53 + this.$dispatch('on-form-change', this.checked);
53 } 54 }
54 } 55 }
55 }; 56 };