fix: select最后一个tag,hover展示有意义的label

pull/7880/head
chengjian02 2024-10-17 14:22:59 +08:00
parent e46d537d45
commit 9ea371499e
1 changed files with 3 additions and 2 deletions

View File

@ -203,8 +203,9 @@ const SelectSelector = defineComponent<SelectorProps>({
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) => {