Commit 829a2e4cfc73229ed53595d1bf992e2979d0558a
1 parent
d31b0801
fixed CheckboxGroup bug
fixed CheckboxGroup bug
Showing
2 changed files
with
2 additions
and
0 deletions
Show diff stats
src/components/checkbox/checkbox-group.vue
src/components/checkbox/checkbox.vue
@@ -74,6 +74,7 @@ | @@ -74,6 +74,7 @@ | ||
74 | } | 74 | } |
75 | }, | 75 | }, |
76 | ready () { | 76 | ready () { |
77 | + if (this.$parent && this.$parent.$options.name === 'checkboxGroup') this.group = true; | ||
77 | if (!this.group) { | 78 | if (!this.group) { |
78 | this.updateModel(); | 79 | this.updateModel(); |
79 | if (this.$els.slot && this.$els.slot.innerHTML === '') { | 80 | if (this.$els.slot && this.$els.slot.innerHTML === '') { |