From c543a81e4f8b25f63961a9e6727c707760278281 Mon Sep 17 00:00:00 2001 From: tycoding Date: Mon, 13 Jan 2025 13:00:01 +0800 Subject: [PATCH] feat: Added header height props --- packages/@core/preferences/src/types.ts | 2 ++ packages/effects/layouts/src/basic/layout.vue | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/@core/preferences/src/types.ts b/packages/@core/preferences/src/types.ts index b554b219a40..70e879b54f2 100644 --- a/packages/@core/preferences/src/types.ts +++ b/packages/@core/preferences/src/types.ts @@ -103,6 +103,8 @@ interface FooterPreferences { interface HeaderPreferences { /** 顶栏是否启用 */ enable: boolean; + /** header高度 */ + height: number; /** 顶栏是否隐藏,css-隐藏 */ hidden: boolean; /** 顶栏菜单位置 */ diff --git a/packages/effects/layouts/src/basic/layout.vue b/packages/effects/layouts/src/basic/layout.vue index 1fb90448f42..c670593bf3c 100644 --- a/packages/effects/layouts/src/basic/layout.vue +++ b/packages/effects/layouts/src/basic/layout.vue @@ -178,6 +178,7 @@ const headerSlots = computed(() => { :content-compact="preferences.app.contentCompact" :footer-enable="preferences.footer.enable" :footer-fixed="preferences.footer.fixed" + :header-height="preferences.header.height" :header-hidden="preferences.header.hidden" :header-mode="preferences.header.mode" :header-theme="headerTheme" @@ -283,9 +284,9 @@ const headerSlots = computed(() => { :menus="wrapperMenus(mixHeaderMenus, false)" :rounded="isMenuRounded" :theme="sidebarTheme" - @default-select="handleDefaultSelect" @enter="handleMenuMouseEnter" @select="handleMixedMenuSelect" + @default-select="handleDefaultSelect" />