vue-vben-admin/src/enums/menuEnum.ts

51 lines
817 B
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
/**
* @description: menu type
*/
export enum MenuTypeEnum {
// left menu
SIDEBAR = 'sidebar',
2020-12-21 23:38:16 +08:00
MIX_SIDEBAR = 'mix-sidebar',
2020-09-28 20:19:10 +08:00
// mixin menu
MIX = 'mix',
// top menu
TOP_MENU = 'top-menu',
}
2020-11-06 22:41:00 +08:00
// 折叠触发器位置
export enum TriggerEnum {
// 不显示
NONE = 'NONE',
// 菜单底部
FOOTER = 'FOOTER',
// 头部
HEADER = 'HEADER',
}
2020-09-28 20:19:10 +08:00
export type Mode = 'vertical' | 'vertical-right' | 'horizontal' | 'inline';
// menu mode
export enum MenuModeEnum {
VERTICAL = 'vertical',
HORIZONTAL = 'horizontal',
VERTICAL_RIGHT = 'vertical-right',
INLINE = 'inline',
}
export enum MenuSplitTyeEnum {
NONE,
TOP,
LEFT,
}
export enum TopMenuAlignEnum {
CENTER = 'center',
START = 'start',
END = 'end',
}
export enum MixSidebarTriggerEnum {
HOVER = 'hover',
CLICK = 'click',
}