@@ -29,7 +29,7 @@ const layoutMode = computed(() => {
2929});
3030
3131const headerProps = computed (() => {
32- const { mode, reverseHorizontalMix } = themeStore .layout ;
32+ const { mode } = themeStore .layout ;
3333
3434 const headerPropsConfig: Record <UnionKey .ThemeLayoutMode , App .Global .HeaderProps > = {
3535 vertical: {
@@ -47,10 +47,15 @@ const headerProps = computed(() => {
4747 showMenu: true ,
4848 showMenuToggler: false
4949 },
50- ' horizontal-mix ' : {
50+ ' top-hybrid-sidebar-first ' : {
5151 showLogo: true ,
5252 showMenu: true ,
53- showMenuToggler: reverseHorizontalMix && isActiveFirstLevelMenuHasChildren .value
53+ showMenuToggler: false
54+ },
55+ ' top-hybrid-header-first' : {
56+ showLogo: true ,
57+ showMenu: true ,
58+ showMenuToggler: isActiveFirstLevelMenuHasChildren .value
5459 }
5560 };
5661
@@ -61,21 +66,22 @@ const siderVisible = computed(() => themeStore.layout.mode !== 'horizontal');
6166
6267const isVerticalMix = computed (() => themeStore .layout .mode === ' vertical-mix' );
6368
64- const isHorizontalMix = computed (() => themeStore .layout .mode === ' horizontal-mix' );
69+ const isTopHybridSidebarFirst = computed (() => themeStore .layout .mode === ' top-hybrid-sidebar-first' );
70+
71+ const isTopHybridHeaderFirst = computed (() => themeStore .layout .mode === ' top-hybrid-header-first' );
6572
6673const siderWidth = computed (() => getSiderWidth ());
6774
6875const siderCollapsedWidth = computed (() => getSiderCollapsedWidth ());
6976
7077function getSiderWidth() {
71- const { reverseHorizontalMix } = themeStore .layout ;
7278 const { width, mixWidth, mixChildMenuWidth } = themeStore .sider ;
7379
74- if (isHorizontalMix .value && reverseHorizontalMix ) {
80+ if (isTopHybridHeaderFirst .value ) {
7581 return isActiveFirstLevelMenuHasChildren .value ? width : 0 ;
7682 }
7783
78- let w = isVerticalMix .value || isHorizontalMix .value ? mixWidth : width ;
84+ let w = isVerticalMix .value || isTopHybridSidebarFirst .value ? mixWidth : width ;
7985
8086 if (isVerticalMix .value && appStore .mixSiderFixed && childLevelMenus .value .length ) {
8187 w += mixChildMenuWidth ;
@@ -85,14 +91,13 @@ function getSiderWidth() {
8591}
8692
8793function getSiderCollapsedWidth() {
88- const { reverseHorizontalMix } = themeStore .layout ;
8994 const { collapsedWidth, mixCollapsedWidth, mixChildMenuWidth } = themeStore .sider ;
9095
91- if (isHorizontalMix .value && reverseHorizontalMix ) {
96+ if (isTopHybridHeaderFirst .value ) {
9297 return isActiveFirstLevelMenuHasChildren .value ? collapsedWidth : 0 ;
9398 }
9499
95- let w = isVerticalMix .value || isHorizontalMix .value ? mixCollapsedWidth : collapsedWidth ;
100+ let w = isVerticalMix .value || isTopHybridSidebarFirst .value ? mixCollapsedWidth : collapsedWidth ;
96101
97102 if (isVerticalMix .value && appStore .mixSiderFixed && childLevelMenus .value .length ) {
98103 w += mixChildMenuWidth ;
0 commit comments