fixed CheckboxGroup bug
fixed CheckboxGroup bug
This commit is contained in:
parent
d31b080199
commit
829a2e4cfc
2 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
const prefixCls = 'ivu-checkbox-group';
|
const prefixCls = 'ivu-checkbox-group';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'checkboxGroup',
|
||||||
props: {
|
props: {
|
||||||
model: {
|
model: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ready () {
|
ready () {
|
||||||
|
if (this.$parent && this.$parent.$options.name === 'checkboxGroup') this.group = true;
|
||||||
if (!this.group) {
|
if (!this.group) {
|
||||||
this.updateModel();
|
this.updateModel();
|
||||||
if (this.$els.slot && this.$els.slot.innerHTML === '') {
|
if (this.$els.slot && this.$els.slot.innerHTML === '') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue