update Select
This commit is contained in:
parent
d87ce40a74
commit
393d85515e
1 changed files with 13 additions and 0 deletions
|
@ -593,6 +593,10 @@
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.broadcastQuery('');
|
this.broadcastQuery('');
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.findChild(child => {
|
||||||
|
child.selected = this.model.indexOf(child.value) > -1;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
this.slotChange();
|
this.slotChange();
|
||||||
this.updateOptions(true, true);
|
this.updateOptions(true, true);
|
||||||
|
@ -603,6 +607,10 @@
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.broadcastQuery('');
|
this.broadcastQuery('');
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.findChild(child => {
|
||||||
|
child.selected = this.model.indexOf(child.value) > -1;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
this.slotChange();
|
this.slotChange();
|
||||||
this.updateOptions(true, true);
|
this.updateOptions(true, true);
|
||||||
|
@ -670,6 +678,11 @@
|
||||||
} else {
|
} else {
|
||||||
this.$refs.input.select();
|
this.$refs.input.select();
|
||||||
}
|
}
|
||||||
|
if (this.remote) {
|
||||||
|
this.findChild(child => {
|
||||||
|
child.selected = this.model.indexOf(child.value) > -1;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.broadcast('Drop', 'on-update-popper');
|
this.broadcast('Drop', 'on-update-popper');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue