From c1f6da1f8e67e7f504afc4b2153211c13ffad96b Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Wed, 21 Dec 2016 20:48:11 +0800 Subject: [PATCH] fixed CheckboxGroup bug --- src/components/checkbox/checkbox-group.vue | 11 ++++++----- test/routers/date.vue | 5 ++--- test/routers/more.vue | 50 +++++++++++++++++--------------------------------- 3 files changed, 25 insertions(+), 41 deletions(-) diff --git a/src/components/checkbox/checkbox-group.vue b/src/components/checkbox/checkbox-group.vue index 24b850b..85a6851 100644 --- a/src/components/checkbox/checkbox-group.vue +++ b/src/components/checkbox/checkbox-group.vue @@ -43,11 +43,12 @@ }, watch: { model (val, oldVal) { - if (val == oldVal) { - this.updateModel(); - } else { - this.updateModel(true); - } +// if (val == oldVal) { +// this.updateModel(); +// } else { +// this.updateModel(true); +// } + this.updateModel(true); } } } diff --git a/test/routers/date.vue b/test/routers/date.vue index e40c26c..bf4ba19 100644 --- a/test/routers/date.vue +++ b/test/routers/date.vue @@ -7,16 +7,15 @@ -

123

diff --git a/test/routers/more.vue b/test/routers/more.vue index e04eed1..d6208ad 100644 --- a/test/routers/more.vue +++ b/test/routers/more.vue @@ -1,42 +1,26 @@ -