[Select, AutoComplete] 当选项列表中的 dropdown 在控件上部显示时,

如果选项列表的长度由外部动态变更了,dropdown 的位置会有点问题,需要重新计算.
This commit is contained in:
Rookie_Zoe 2018-10-25 18:20:16 +08:00
parent 69a844010e
commit 0f58570a1f

View file

@ -753,7 +753,14 @@
},
visible(state){
this.$emit('on-open-change', state);
},
slotOptions(options, old){
// dropdown
// dropdown
if (options && old && options.length !== old.length) {
this.broadcast('Drop', 'on-update-popper');
}
},
}
};
</script>