From a804d60885bda4be86b6c7dede1933b6727fce33 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Wed, 1 Mar 2017 20:33:07 +0800 Subject: [PATCH] update Radio --- src/components/radio/radio.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/radio/radio.vue b/src/components/radio/radio.vue index 2585804..8be2b46 100644 --- a/src/components/radio/radio.vue +++ b/src/components/radio/radio.vue @@ -78,7 +78,6 @@ const checked = event.target.checked; this.currentValue = checked; this.$emit('input', checked); - this.$emit('on-change', checked); if (this.group && this.label) { this.$parent.change({ @@ -86,8 +85,11 @@ checked: this.value }); } - // todo 事件 -// if (!this.group) this.$dispatch('on-form-change', checked); + if (!this.group) { + this.$emit('on-change', checked); + // todo 事件 +// this.$dispatch('on-form-change', checked); + } }, updateValue () { this.currentValue = this.value; -- libgit2 0.21.4