-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(projects): update deps & fix vue-router meta type
- Loading branch information
1 parent
a13fb16
commit 43eed04
Showing
12 changed files
with
2,087 additions
and
3,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import 'vue-router'; | ||
|
||
declare module 'vue-router' { | ||
interface RouteMeta { | ||
/** | ||
* Title of the route | ||
* | ||
* It can be used in document title | ||
*/ | ||
title: string; | ||
/** | ||
* Roles of the route | ||
* | ||
* Route can be accessed if the current user has at least one of the roles | ||
* | ||
* It only works when the route mode is "static", if the route mode is "dynamic", it will be ignored | ||
*/ | ||
roles?: string[]; | ||
/** Whether to cache the route */ | ||
keepAlive?: boolean | null; | ||
/** | ||
* Is constant route | ||
* | ||
* when it is set to true, there will be no login verification and no permission verification to access the route | ||
*/ | ||
constant?: boolean | null; | ||
/** | ||
* Iconify icon | ||
* | ||
* It can be used in the menu or breadcrumb | ||
*/ | ||
icon?: string; | ||
/** | ||
* Local icon | ||
* | ||
* In "src/assets/svg-icon", if it is set, the icon will be ignored | ||
*/ | ||
localIcon?: string; | ||
/** Icon size. width and height are the same. */ | ||
iconFontSize?: number; | ||
/** Router order */ | ||
order?: number | null; | ||
/** The outer link of the route */ | ||
href?: string | null; | ||
/** Whether to hide the route in the menu */ | ||
hideInMenu?: boolean | null; | ||
/** | ||
* The menu key will be activated when entering the route | ||
* | ||
* The route is not in the menu | ||
* | ||
* @example | ||
* the route is "user_detail", if it is set to "user_list", the menu "user_list" will be activated | ||
*/ | ||
activeMenu?: import('@elegant-router/types').RouteKey | null; | ||
/** | ||
* By default, the same route path will use one tab, even with different query, if set true, the route with | ||
* different query will use different tabs | ||
*/ | ||
multiTab?: boolean | null; | ||
/** If set, the route will be fixed in tabs, and the value is the order of fixed tabs */ | ||
fixedIndexInTab?: number | null; | ||
/** if set query parameters, it will be automatically carried when entering the route */ | ||
query?: { key: string; value: string }[] | null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.