From 2fa83db1de4f8c02f9129f57d03468606783fe79 Mon Sep 17 00:00:00 2001 From: yJs Date: Fri, 7 Dec 2018 10:11:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20dropdown=E4=BD=8D=E7=BD=AE=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=B0=83=E6=95=B4=E5=90=8E=EF=BC=8C=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84=E9=95=BF=E5=BA=A6=E5=8F=91=E7=94=9F?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E5=90=8E=EF=BC=8Cdropdown=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/select/select.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 8aaca7d5..d398fe31 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -750,6 +750,10 @@ if (this.slotOptions && this.slotOptions.length === 0){ this.query = ''; } + + // 当 dropdown 一开始在控件下部显示,而滚动页面后变成在上部显示,如果选项列表的长度由内部动态变更了(搜索情况) + // dropdown 的位置不会重新计算,需要重新计算 + this.broadcast('Drop', 'on-update-popper'); }, visible(state){ this.$emit('on-open-change', state);