diff --git a/src/components/checkbox/checkbox-group.vue b/src/components/checkbox/checkbox-group.vue index 85a68510..40085f6f 100644 --- a/src/components/checkbox/checkbox-group.vue +++ b/src/components/checkbox/checkbox-group.vue @@ -7,6 +7,7 @@ const prefixCls = 'ivu-checkbox-group'; export default { + name: 'checkboxGroup', props: { model: { type: Array, diff --git a/src/components/checkbox/checkbox.vue b/src/components/checkbox/checkbox.vue index 15aa16fa..24672830 100644 --- a/src/components/checkbox/checkbox.vue +++ b/src/components/checkbox/checkbox.vue @@ -74,6 +74,7 @@ } }, ready () { + if (this.$parent && this.$parent.$options.name === 'checkboxGroup') this.group = true; if (!this.group) { this.updateModel(); if (this.$els.slot && this.$els.slot.innerHTML === '') {