-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute.d.ts
38 lines (36 loc) · 1.08 KB
/
route.d.ts
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
36
37
38
import { IRoute } from '@umijs/types';
declare namespace routeInterface {
export interface route extends IRoute {
redirect?: string;
routes?: route[];
exact?: boolean;
extraOpt?: {
hidden?: boolean;
key?: string;
name?: string; // 路由名
namePath?: string; // 路由名路径
sub?: boolean; // 是否拥有子菜单
default?: string; // 默认子菜单
menu?: boolean; // 是否显示在左侧菜单
parentMenu?: string; // 父菜单
nav?: boolean; // 是否显示在顶部导航栏
icon?: string; // 菜单图标
};
}
export interface mRoute extends IRoute {
redirect?: string;
routes?: mRoute[];
exact?: boolean;
extraOpt?: {
hidden?: boolean;
key?: string;
name?: string; // 路由名
namePath?: string; // 路由名路径
sub?: boolean; // 是否拥有子菜单
default?: string; // 默认子菜单
menu?: boolean; // 是否显示在左侧菜单
nav?: boolean; // 是否显示在顶部导航栏
icon?: string; // 菜单图标
};
}
}