admin-vben/packages/@core/ui-kit/layout-ui/src/vben-layout.ts

166 lines
2.8 KiB
TypeScript
Raw Normal View History

2024-05-19 13:20:42 +00:00
import type {
ContentCompactType,
2024-06-01 15:15:29 +00:00
LayoutHeaderModeType,
2024-05-19 13:20:42 +00:00
LayoutType,
2024-06-01 15:15:29 +00:00
ThemeModeType,
2024-05-19 13:20:42 +00:00
} from '@vben-core/typings';
interface VbenLayoutProps {
/**
*
* @default 'wide'
*/
contentCompact?: ContentCompactType;
/**
*
* @default 1200
*/
contentCompactWidth?: number;
/**
* padding
* @default 16
*/
contentPadding?: number;
/**
* paddingBottom
* @default 16
*/
contentPaddingBottom?: number;
/**
* paddingLeft
* @default 16
*/
contentPaddingLeft?: number;
/**
* paddingRight
* @default 16
*/
contentPaddingRight?: number;
/**
* paddingTop
* @default 16
*/
contentPaddingTop?: number;
2024-06-09 05:31:43 +00:00
/**
* footer
* @default false
*/
footerEnable?: boolean;
2024-05-19 13:20:42 +00:00
/**
* footer
* @default true
*/
footerFixed?: boolean;
/**
* footer
* @default 32
*/
footerHeight?: number;
2024-05-19 13:20:42 +00:00
/**
* header
* @default 48
*/
headerHeight?: number;
2024-06-01 14:17:52 +00:00
/**
*
* @default false
*/
headerHidden?: boolean;
2024-05-19 13:20:42 +00:00
/**
* header
* @default 'fixed'
*/
2024-06-01 15:15:29 +00:00
headerMode?: LayoutHeaderModeType;
/**
* header
*/
headerTheme?: ThemeModeType;
/**
* header
* @default
*/
headerToggleSidebarButton?: boolean;
2024-05-19 13:20:42 +00:00
/**
* header
* @default true
*/
headerVisible?: boolean;
/**
*
* @default false
*/
isMobile?: boolean;
/**
*
2024-06-09 07:39:11 +00:00
* sidebar-nav
2024-05-19 13:20:42 +00:00
* header-nav
* mixed-nav &
2024-06-09 07:39:11 +00:00
* sidebar-mixed-nav
2024-05-19 13:20:42 +00:00
* full-content
2024-06-09 07:39:11 +00:00
* @default sidebar-nav
2024-05-19 13:20:42 +00:00
*/
layout?: LayoutType;
/**
*
* @default false
*/
2024-06-09 07:39:11 +00:00
sidebarCollapse?: boolean;
2024-05-19 13:20:42 +00:00
/**
* title
* @default true
*/
2024-06-09 07:39:11 +00:00
sidebarCollapseShowTitle?: boolean;
2024-05-19 13:20:42 +00:00
/**
2024-06-09 07:39:11 +00:00
*
* @default true
2024-05-19 13:20:42 +00:00
*/
2024-06-09 07:39:11 +00:00
sidebarEnable?: boolean;
/**
*
* @default 48
*/
sidebarExtraCollapsedWidth?: number;
2024-06-01 14:17:52 +00:00
/**
*
* @default false
*/
2024-06-09 07:39:11 +00:00
sidebarHidden?: boolean;
2024-05-19 13:20:42 +00:00
/**
*
* @default 80
*/
2024-06-09 07:39:11 +00:00
sidebarMixedWidth?: number;
2024-05-19 13:20:42 +00:00
/**
*
* @default dark
*/
2024-06-09 07:39:11 +00:00
sidebarTheme?: ThemeModeType;
2024-05-19 13:20:42 +00:00
/**
*
* @default 210
*/
2024-06-09 07:39:11 +00:00
sidebarWidth?: number;
/**
*
* @default 48
*/
sideCollapseWidth?: number;
2024-06-09 07:39:11 +00:00
/**
* tab
* @default true
*/
tabbarEnable?: boolean;
2024-05-19 13:20:42 +00:00
/**
* tab
* @default 30
*/
tabbarHeight?: number;
2024-05-19 13:20:42 +00:00
/**
* zIndex
* @default 100
*/
zIndex?: number;
}
export type { VbenLayoutProps };