From 829a2e4cfc73229ed53595d1bf992e2979d0558a Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Fri, 23 Dec 2016 17:00:52 +0800 Subject: [PATCH] fixed CheckboxGroup bug --- src/components/checkbox/checkbox-group.vue | 1 + src/components/checkbox/checkbox.vue | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/components/checkbox/checkbox-group.vue b/src/components/checkbox/checkbox-group.vue index 85a6851..40085f6 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 15aa16f..2467283 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 === '') { -- libgit2 0.21.4