Skip to content

Commit

Permalink
feat: Added header height props
Browse files Browse the repository at this point in the history
  • Loading branch information
TyCoding committed Jan 13, 2025
1 parent 42e3220 commit c543a81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/@core/preferences/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ interface FooterPreferences {
interface HeaderPreferences {
/** 顶栏是否启用 */
enable: boolean;
/** header高度 */
height: number;
/** 顶栏是否隐藏,css-隐藏 */
hidden: boolean;
/** 顶栏菜单位置 */
Expand Down
3 changes: 2 additions & 1 deletion packages/effects/layouts/src/basic/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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>
<!-- 侧边额外区域 -->
Expand Down

0 comments on commit c543a81

Please sign in to comment.