36 lines
629 B
TypeScript
Raw Normal View History

2023-04-02 01:01:56 +08:00
import { RouteRecordRaw } from 'vue-router';
declare module 'vue-router' {
type RouteOption = {
hidden?: boolean;
permissions?: string[];
roles?: string[];
component?: any;
children?: RouteOption[];
alwaysShow?: boolean;
parentPath?: string;
meta?: {
title: string;
2023-04-02 21:40:03 +08:00
icon: string;
2023-04-02 01:01:56 +08:00
};
} & RouteRecordRaw;
interface _RouteLocationBase {
children?: RouteOption[];
}
interface RouteLocationOptions {
fullPath?: string;
}
interface TagView extends Partial<_RouteLocationBase> {
title?: string;
meta?: {
link?: string;
title?: string;
affix?: boolean;
noCache?: boolean;
};
}
}