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) {
|
function renderDropTabsLabel(option: any) {
|
||||||
return t(`route.${String(option.name)}`, option.meta.title)
|
return t(`route.${String(option.name)}`, option.meta.title)
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderDropTabsIcon(option: any) {
|
function renderDropTabsIcon(option: any) {
|
||||||
return renderIcon(option.meta.icon)!()
|
return renderIcon(option.meta.icon)!()
|
||||||
}
|
}
|
||||||
@ -26,6 +27,7 @@ function handleDropTabs(key: string, option: any) {
|
|||||||
:render-icon="renderDropTabsIcon"
|
:render-icon="renderDropTabsIcon"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
size="small"
|
size="small"
|
||||||
|
key-field="fullPath"
|
||||||
@select="handleDropTabs"
|
@select="handleDropTabs"
|
||||||
>
|
>
|
||||||
<CommonWrapper>
|
<CommonWrapper>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user