fix: 解决了checkbox-group多层嵌套数据相互干扰的问题

This commit is contained in:
msidolphin 2019-08-22 16:38:24 +08:00
parent 630bc69d97
commit 67ddfcb7ed
2 changed files with 11 additions and 4 deletions

View file

@ -49,7 +49,7 @@
},
methods: {
updateModel (update) {
this.childrens = findComponentsDownward(this, 'Checkbox');
this.childrens = findComponentsDownward(this, 'Checkbox', 'CheckboxGroup');
if (this.childrens) {
const { value } = this;
this.childrens.forEach(child => {