mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 01:30:26 +08:00
fix: header logo may not be collapsed in header-sidebar-nav
layout (#5274)
This commit is contained in:
parent
2135cb8ece
commit
3af22f7e91
@ -82,10 +82,20 @@ function usePreferences() {
|
|||||||
() => appPreferences.value.layout === 'header-nav',
|
() => appPreferences.value.layout === 'header-nav',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @zh_CN 是否为头部混合导航模式
|
||||||
|
*/
|
||||||
const isHeaderMixedNav = computed(
|
const isHeaderMixedNav = computed(
|
||||||
() => appPreferences.value.layout === 'header-mixed-nav',
|
() => appPreferences.value.layout === 'header-mixed-nav',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @zh_CN 是否为顶部通栏+侧边导航模式
|
||||||
|
*/
|
||||||
|
const isHeaderSidebarNav = computed(
|
||||||
|
() => appPreferences.value.layout === 'header-sidebar-nav',
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @zh_CN 是否为混合导航模式
|
* @zh_CN 是否为混合导航模式
|
||||||
*/
|
*/
|
||||||
@ -225,6 +235,7 @@ function usePreferences() {
|
|||||||
isFullContent,
|
isFullContent,
|
||||||
isHeaderMixedNav,
|
isHeaderMixedNav,
|
||||||
isHeaderNav,
|
isHeaderNav,
|
||||||
|
isHeaderSidebarNav,
|
||||||
isMixedNav,
|
isMixedNav,
|
||||||
isMobile,
|
isMobile,
|
||||||
isSideMixedNav,
|
isSideMixedNav,
|
||||||
|
@ -40,6 +40,7 @@ const {
|
|||||||
isMobile,
|
isMobile,
|
||||||
isSideMixedNav,
|
isSideMixedNav,
|
||||||
isHeaderMixedNav,
|
isHeaderMixedNav,
|
||||||
|
isHeaderSidebarNav,
|
||||||
layout,
|
layout,
|
||||||
preferencesButtonPosition,
|
preferencesButtonPosition,
|
||||||
sidebarCollapsed,
|
sidebarCollapsed,
|
||||||
@ -81,7 +82,7 @@ const logoCollapsed = computed(() => {
|
|||||||
if (isMobile.value && sidebarCollapsed.value) {
|
if (isMobile.value && sidebarCollapsed.value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (isHeaderNav.value || isMixedNav.value) {
|
if (isHeaderNav.value || isMixedNav.value || isHeaderSidebarNav.value) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user