mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-12 21:03:42 +08:00
33 lines
769 B
TypeScript
33 lines
769 B
TypeScript
import type { VNodeChild } from 'vue';
|
|
import type { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
import type { DropdownOption } from 'naive-ui';
|
|
|
|
/** 菜单项配置 */
|
|
export type GlobalMenuOption = {
|
|
key: string;
|
|
label: string;
|
|
routeName: string;
|
|
routePath: string;
|
|
icon?: () => VNodeChild;
|
|
children?: GlobalMenuOption[];
|
|
};
|
|
|
|
/** 面包屑 */
|
|
export type GlobalBreadcrumb = DropdownOption & {
|
|
key: string;
|
|
label: string;
|
|
disabled: boolean;
|
|
routeName: string;
|
|
hasChildren: boolean;
|
|
children?: GlobalBreadcrumb[];
|
|
};
|
|
|
|
/** 多页签Tab的路由 */
|
|
export interface GlobalTabRoute extends Pick<RouteLocationNormalizedLoaded, 'name' | 'path' | 'meta'> {
|
|
/** 滚动的位置 */
|
|
scrollPosition: {
|
|
left: number;
|
|
top: number;
|
|
};
|
|
}
|