This commit is contained in:
梁灏 2018-12-17 15:37:07 +08:00
parent dcb4839732
commit 2bdeea65ec

View file

@ -631,8 +631,8 @@
}
this.broadcast('Drop', 'on-update-popper');
setTimeout(() => {
this.filterQueryChange = false;
},300)
this.filterQueryChange = false;
}, ANIMATION_TIMEOUT);
},
onQueryChange(query) {
if (query.length > 0 && query !== this.query) this.visible = true;
@ -753,12 +753,27 @@
// dropdown ()
// dropdown
this.broadcast('Drop', 'on-update-popper');
this.broadcast('Drop', 'on-update-popper');
},
visible(state){
this.$emit('on-open-change', state);
},
slotOptions(options, old){
// #4626 Options label v-model
if (options && options.length && this.values.length) {
this.values = this.values.map(value => {
const option = options.find(option => option.componentOptions.propsData.value === value.value);
if(!option) return null;
const label = getOptionLabel(option);
return {
value: value.value,
label: label
};
}).filter(Boolean);
}
// dropdown
// dropdown
if (options && old && options.length !== old.length) {