From b6fcd939845616bfe430bfd1308dbf0993505c92 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Wed, 15 Mar 2023 10:43:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E6=9D=BF=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E4=B8=8B=E6=8B=89=E7=BB=84=E4=BB=B6=EF=BC=88=E5=A4=9A?= =?UTF-8?q?=E9=80=89=EF=BC=89=E5=8F=B3=E4=BE=A7=E6=BB=9A=E5=8A=A8=E6=9D=A1?= =?UTF-8?q?=E4=B8=80=E7=9B=B4=E8=99=9A=E5=8C=96=E6=BB=9A=E5=8A=A8=20#4776?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/elVisualSelect/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/elVisualSelect/index.vue b/frontend/src/components/elVisualSelect/index.vue index e812824b95..9f003b9345 100644 --- a/frontend/src/components/elVisualSelect/index.vue +++ b/frontend/src/components/elVisualSelect/index.vue @@ -160,7 +160,8 @@ export default { selectDom.insertBefore(this.maxHeightDom, this.domList) }, reCacularHeight() { - this.maxHeightDom.style.height = this.newList.length * this.itemHeight + 'px' + const h = this.$attrs.multiple ? 16 : 0 + this.maxHeightDom.style.height = this.newList.length * this.itemHeight + h + 'px' }, resetList(arrays) { if (Array.isArray(arrays)) {