Merge pull request #4751 from RookieZoe/2.0-bug-fix
[Select, AutoComplete] 当选项列表中的 dropdown 在控件上部显示时的一个BUG
This commit is contained in:
commit
62725de376
1 changed files with 8 additions and 1 deletions
|
@ -753,7 +753,14 @@
|
||||||
},
|
},
|
||||||
visible(state){
|
visible(state){
|
||||||
this.$emit('on-open-change', 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>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue