长城汽车软件包管理平台
whychdw
2025-05-06 4a867727d81b9513e675ad396903368c6a293dca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 核心枚举定义
export enum MenuTypeEnum {
  CATALOG = 2, // 目录
  MENU = 1, // 菜单
  BUTTON = 3, // 按钮
  EXTLINK = 4, // 外链
}
 
// 类型标签映射配置
export const MenuTypeConfig = {
  [MenuTypeEnum.CATALOG]: {
    label: "目录",
    type: "warning" as const,
    icon: "folder-opened",
    value: 2,
  },
  [MenuTypeEnum.MENU]: {
    label: "菜单",
    type: "success" as const,
    icon: "menu",
    value: 1,
  },
  [MenuTypeEnum.BUTTON]: {
    label: "按钮",
    type: "danger" as const,
    icon: "mouse",
    value: 3,
  },
  [MenuTypeEnum.EXTLINK]: {
    label: "外链",
    type: "info" as const,
    icon: "link",
    value: 4,
  },
} as const;