update Select

This commit is contained in:
梁灏 2017-05-09 09:35:04 +08:00
parent f10b27f99d
commit 7dcfe45d1b
2 changed files with 13 additions and 6 deletions

View file

@ -222,9 +222,12 @@
cb(child);
} else if (child.$children.length) {
_this.$nextTick(() => {
child.$children.forEach((innerChild) => {
find(innerChild, cb);
});
// child.$children.forEach((innerChild) => {
// find(innerChild, cb);
// });
});
child.$children.forEach((innerChild) => {
find(innerChild, cb);
});
}
};
@ -300,6 +303,7 @@
},
updateMultipleSelected (init = false, slot = false) {
if (this.multiple && Array.isArray(this.model)) {
// todo label
let selected = this.remote ? this.selectedMultiple : [];
for (let i = 0; i < this.model.length; i++) {