From 70d5a4ab80ff73b234f15e543ed469e042272878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= 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 52d76856..275dbc31 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 ceddc360..c722c22e 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 e850504f..37261629 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