feat: new interface pendant can be configured to display hidden

This commit is contained in:
vince
2024-07-10 21:20:11 +08:00
parent db76325d68
commit a765d3bbc0
36 changed files with 256 additions and 612 deletions

View File

@@ -32,8 +32,8 @@ const props = withDefaults(defineProps<Props>(), {
headerHeight: 50,
headerHeightOffset: 10,
headerHidden: false,
headerMode: 'fixed',
headerToggleSidebarButton: true,
headerVisible: true,
isMobile: false,
layout: 'sidebar-nav',
@@ -45,7 +45,7 @@ const props = withDefaults(defineProps<Props>(), {
sidebarTheme: 'dark',
sidebarWidth: 180,
tabbarEnable: true,
tabsHeight: 36,
tabbarHeight: 36,
zIndex: 200,
});
@@ -122,7 +122,7 @@ const headerWrapperHeight = computed(() => {
height += getHeaderHeight.value;
}
if (props.tabbarEnable) {
height += props.tabsHeight;
height += props.tabbarHeight;
}
return height;
});
@@ -364,6 +364,7 @@ const maskStyle = computed((): CSSProperties => {
const showHeaderToggleButton = computed(() => {
return (
props.headerToggleSidebarButton &&
isSideMode.value &&
!isSidebarMixedNav.value &&
!isMixedNav.value &&
@@ -528,7 +529,7 @@ function handleOpenMenu() {
<LayoutTabbar
v-if="tabbarEnable"
:height="tabsHeight"
:height="tabbarHeight"
:style="tabbarStyle"
>
<slot name="tabbar"></slot>