fixed CheckboxGroup bug

fixed CheckboxGroup bug
This commit is contained in:
梁灏 2016-12-23 17:00:52 +08:00
parent d31b080199
commit 829a2e4cfc
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@
const prefixCls = 'ivu-checkbox-group';
export default {
name: 'checkboxGroup',
props: {
model: {
type: Array,

View file

@ -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 === '') {