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

44 lines
708 B
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
/**
* @description: menu type
*/
export enum MenuTypeEnum {
// left menu
SIDEBAR = 'sidebar',
// 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',
}