feat: autoActivateChild support more layout mode (#5148)

This commit is contained in:
Netfan
2024-12-16 04:54:32 +08:00
committed by GitHub
parent 2efb5b71c3
commit f6faeb034e
4 changed files with 37 additions and 2 deletions

View File

@@ -43,7 +43,11 @@ const sidebarExpandOnHover = defineModel<boolean>('sidebarExpandOnHover');
<SwitchItem
v-model="sidebarAutoActivateChild"
:disabled="
!sidebarEnable || currentLayout !== 'sidebar-mixed-nav' || disabled
!sidebarEnable ||
!['sidebar-mixed-nav', 'mixed-nav', 'sidebar-nav'].includes(
currentLayout as string,
) ||
disabled
"
:tip="$t('preferences.sidebar.autoActivateChildTip')"
>