From 70d5a4ab80ff73b234f15e543ed469e042272878 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Mon, 27 Mar 2017 10:48:18 +0800 Subject: [PATCH] fixed #425 --- examples/routers/dropdown.vue | 31 +++++++++++-------------------- examples/routers/radio.vue | 27 ++++----------------------- src/components/radio/radio.vue | 2 +- 3 files changed, 16 insertions(+), 44 deletions(-) diff --git a/examples/routers/dropdown.vue b/examples/routers/dropdown.vue index 52d7685..275dbc3 100644 --- a/examples/routers/dropdown.vue +++ b/examples/routers/dropdown.vue @@ -1,35 +1,26 @@ diff --git a/examples/routers/radio.vue b/examples/routers/radio.vue index ceddc36..c722c22 100644 --- a/examples/routers/radio.vue +++ b/examples/routers/radio.vue @@ -1,26 +1,8 @@ @@ -28,8 +10,7 @@ export default { data () { return { - phone: 'apple', - animal: '爪哇犀牛' + sex: 0 } } } diff --git a/src/components/radio/radio.vue b/src/components/radio/radio.vue index e850504..3726162 100644 --- a/src/components/radio/radio.vue +++ b/src/components/radio/radio.vue @@ -83,7 +83,7 @@ this.currentValue = checked; this.$emit('input', checked); - if (this.group && this.label) { + if (this.group && this.label !== undefined) { this.parent.change({ value: this.label, checked: this.value -- libgit2 0.21.4