update Select

This commit is contained in:
梁灏 2017-05-08 14:30:08 +08:00
parent d87ce40a74
commit 393d85515e

View file

@ -593,6 +593,10 @@
this.$nextTick(() => {
this.broadcastQuery('');
});
} else {
this.findChild(child => {
child.selected = this.model.indexOf(child.value) > -1;
});
}
this.slotChange();
this.updateOptions(true, true);
@ -603,6 +607,10 @@
this.$nextTick(() => {
this.broadcastQuery('');
});
} else {
this.findChild(child => {
child.selected = this.model.indexOf(child.value) > -1;
});
}
this.slotChange();
this.updateOptions(true, true);
@ -670,6 +678,11 @@
} else {
this.$refs.input.select();
}
if (this.remote) {
this.findChild(child => {
child.selected = this.model.indexOf(child.value) > -1;
});
}
}
this.broadcast('Drop', 'on-update-popper');
} else {