mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 05:50:18 +08:00
feat(projects): page: support manage_menu more options. close #366
This commit is contained in:
20
src/typings/router.d.ts
vendored
20
src/typings/router.d.ts
vendored
@@ -13,21 +13,23 @@ declare module 'vue-router' {
|
||||
*
|
||||
* It's used in i18n, if it is set, the title will be ignored
|
||||
*/
|
||||
i18nKey?: App.I18n.I18nKey;
|
||||
i18nKey?: App.I18n.I18nKey | null;
|
||||
/**
|
||||
* 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;
|
||||
keepAlive?: boolean | null;
|
||||
/**
|
||||
* Is constant route
|
||||
*
|
||||
* Does not need to login, and the route is defined in the front-end
|
||||
*/
|
||||
constant?: boolean;
|
||||
constant?: boolean | null;
|
||||
/**
|
||||
* Iconify icon
|
||||
*
|
||||
@@ -41,11 +43,11 @@ declare module 'vue-router' {
|
||||
*/
|
||||
localIcon?: string;
|
||||
/** Router order */
|
||||
order?: number;
|
||||
order?: number | null;
|
||||
/** The outer link of the route */
|
||||
href?: string;
|
||||
href?: string | null;
|
||||
/** Whether to hide the route in the menu */
|
||||
hideInMenu?: boolean;
|
||||
hideInMenu?: boolean | null;
|
||||
/**
|
||||
* The menu key will be activated when entering the route
|
||||
*
|
||||
@@ -54,12 +56,12 @@ declare module 'vue-router' {
|
||||
* @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;
|
||||
activeMenu?: import('@elegant-router/types').RouteKey | null;
|
||||
/** By default, the same route path will use one tab, if set to true, it will use multiple tabs */
|
||||
multiTab?: boolean;
|
||||
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?: Record<string, string>;
|
||||
query?: { key: string; value: string }[] | null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user