feat: Added header height props

This commit is contained in:
tycoding 2025-01-13 13:00:01 +08:00
parent 42e322012c
commit c543a81e4f
2 changed files with 4 additions and 1 deletions

View File

@ -103,6 +103,8 @@ interface FooterPreferences {
interface HeaderPreferences {
/** 顶栏是否启用 */
enable: boolean;
/** header高度 */
height: number;
/** 顶栏是否隐藏,css-隐藏 */
hidden: boolean;
/** 顶栏菜单位置 */

View File

@ -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"
/>
</template>
<!-- 侧边额外区域 -->