fix: add key-field for DropTab

This commit is contained in:
chansee97 2025-06-20 15:23:09 +08:00
parent 0b0ae4964e
commit 6d643fe7e1

View File

@ -9,6 +9,7 @@ const { t } = useI18n()
function renderDropTabsLabel(option: any) {
return t(`route.${String(option.name)}`, option.meta.title)
}
function renderDropTabsIcon(option: any) {
return renderIcon(option.meta.icon)!()
}
@ -26,6 +27,7 @@ function handleDropTabs(key: string, option: any) {
:render-icon="renderDropTabsIcon"
trigger="click"
size="small"
key-field="fullPath"
@select="handleDropTabs"
>
<CommonWrapper>