Li Kui
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
10 deletions
-
packages/effects/layouts/src/basic/layout.vue
|
|
|
@ -78,23 +78,17 @@ const isMenuRounded = computed(() => { |
|
|
|
}); |
|
|
|
|
|
|
|
const logoCollapsed = computed(() => { |
|
|
|
const shouldCollapse = isHeaderNav.value || isMixedNav.value; |
|
|
|
|
|
|
|
if (shouldCollapse) { |
|
|
|
return false; |
|
|
|
if (isMobile.value) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
const shouldExpandOnMobile = !sidebarCollapsed.value && isMobile.value; |
|
|
|
|
|
|
|
if (shouldExpandOnMobile) { |
|
|
|
if (isHeaderNav.value || isMixedNav.value) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
return sidebarCollapsed.value || isSideMixedNav.value; |
|
|
|
}); |
|
|
|
|
|
|
|
const showHeaderNav = computed(() => { |
|
|
|
return isHeaderNav.value || isMixedNav.value; |
|
|
|
return !isMobile.value && (isHeaderNav.value || isMixedNav.value); |
|
|
|
}); |
|
|
|
|
|
|
|
// 侧边多列菜单 |
|
|
|
|