feat(projects): 面包屑

This commit is contained in:
Soybean
2022-01-11 19:03:42 +08:00
parent e25afe2fad
commit 09c7658c21
8 changed files with 134 additions and 10 deletions

View File

@@ -1,7 +1,18 @@
import type { MenuOption } from 'naive-ui';
import type { MenuOption, DropdownOption } from 'naive-ui';
/** 菜单项配置 */
export type GlobalMenuOption = MenuOption & {
routeName: string;
routePath: string;
};
/** 面包屑 */
export type GlobalBreadcrumb = DropdownOption & {
key: string;
label: string;
disabled: boolean;
routeName: string;
hasChildren: boolean;
iconName?: string;
children?: GlobalBreadcrumb[];
};