-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathvue-router.d.ts
58 lines (56 loc) · 1.2 KB
/
vue-router.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import "vue-router"
export {}
declare module "vue-router" {
interface RouteMeta {
/**
* @description 页面标题
*/
title?: string
/**
* @description 设置能进入该路由的角色,支持多个角色叠加,默认不限制角色
* @default undefined
*/
roles?: string[]
/**
* @description 是否缓存该路由页面,注意路由和页面都需要设置一致的 Name
* @default false
*/
keepAlive?: boolean
/**
* @description 布局配置
*/
layout?: {
/**
* @description NavBar 配置
*/
navBar?: {
/**
* @description 是否显示 NavBar
* @default false
*/
showNavBar?: boolean
/**
* @description 是否显示左侧箭头
* @default false
*/
showLeftArrow?: boolean
}
tabbar?: {
/**
* @description 是否显示 Tabbar
* @default false
*/
showTabbar?: boolean
/**
* @description 图标
*/
icon?: string
}
/**
* @description 是否显示 Footer
* @default false
*/
footer?: boolean
}
}
}