From 9ea371499e5ecd806392a2f4659876d39170a39a Mon Sep 17 00:00:00 2001 From: chengjian02 Date: Thu, 17 Oct 2024 14:22:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20select=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E4=B8=AAtag=EF=BC=8Chover=E5=B1=95=E7=A4=BA=E6=9C=89=E6=84=8F?= =?UTF-8?q?=E4=B9=89=E7=9A=84label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/vc-select/Selector/MultipleSelector.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/vc-select/Selector/MultipleSelector.tsx b/components/vc-select/Selector/MultipleSelector.tsx index bcd76d7d1..d950a9c20 100644 --- a/components/vc-select/Selector/MultipleSelector.tsx +++ b/components/vc-select/Selector/MultipleSelector.tsx @@ -203,8 +203,9 @@ const SelectSelector = defineComponent({ typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder; - - return defaultRenderSelector(content, content, false); + const title = omittedValues.map(item => item.label).join(',') + + return defaultRenderSelector(title, content, false); } const handleInput = (e: Event) => {