mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-08-16 21:39:46 +08:00
fix: add key-field for DropTab
This commit is contained in:
parent
0b0ae4964e
commit
6d643fe7e1
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user