mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
style(projects): format code
This commit is contained in:
63
src/typings/router.d.ts
vendored
63
src/typings/router.d.ts
vendored
@ -3,64 +3,61 @@ import 'vue-router';
|
||||
declare module 'vue-router' {
|
||||
interface RouteMeta {
|
||||
/**
|
||||
* title of the route
|
||||
* @description it can be used in document title
|
||||
* Title of the route
|
||||
*
|
||||
* It can be used in document title
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
* i18n key of the route
|
||||
* @description it's used in i18n, if it is set, the title will be ignored
|
||||
* I18n key of the route
|
||||
*
|
||||
* It's used in i18n, if it is set, the title will be ignored
|
||||
*/
|
||||
i18nKey?: App.I18n.I18nKey;
|
||||
/**
|
||||
* roles of the route
|
||||
* @description route can be accessed if the current user has at least one of the roles
|
||||
* Roles of the route
|
||||
*
|
||||
* Route can be accessed if the current user has at least one of the roles
|
||||
*/
|
||||
roles?: string[];
|
||||
/**
|
||||
* whether to cache the route
|
||||
*/
|
||||
/** Whether to cache the route */
|
||||
keepAlive?: boolean;
|
||||
/**
|
||||
* is constant route
|
||||
* @description does not need to login, and the route is defined in the front-end
|
||||
* Is constant route
|
||||
*
|
||||
* Does not need to login, and the route is defined in the front-end
|
||||
*/
|
||||
constant?: boolean;
|
||||
/**
|
||||
* iconify icon
|
||||
* @description it can be used in the menu or breadcrumb
|
||||
* Iconify icon
|
||||
*
|
||||
* It can be used in the menu or breadcrumb
|
||||
*/
|
||||
icon?: string;
|
||||
/**
|
||||
* local icon
|
||||
* @description in "src/assets/svg-icon", if it is set, the icon will be ignored
|
||||
* Local icon
|
||||
*
|
||||
* In "src/assets/svg-icon", if it is set, the icon will be ignored
|
||||
*/
|
||||
localIcon?: string;
|
||||
/**
|
||||
* router order
|
||||
*/
|
||||
/** Router order */
|
||||
order?: number;
|
||||
/**
|
||||
* the outer link of the route
|
||||
*/
|
||||
/** The outer link of the route */
|
||||
href?: string;
|
||||
/**
|
||||
* whether to hide the route in the menu
|
||||
*/
|
||||
/** Whether to hide the route in the menu */
|
||||
hideInMenu?: boolean;
|
||||
/**
|
||||
* the menu key will be activated when entering the route
|
||||
* @description 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
|
||||
* 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').LastLevelRouteKey;
|
||||
/**
|
||||
* by default, the same route path will use one tab, if set to true, it will use multiple tabs
|
||||
*/
|
||||
/** By default, the same route path will use one tab, if set to true, it will use multiple tabs */
|
||||
multiTab?: boolean;
|
||||
/**
|
||||
* if set, the route will be fixed in tabs, and the value is the order of fixed tabs
|
||||
*/
|
||||
/** If set, the route will be fixed in tabs, and the value is the order of fixed tabs */
|
||||
fixedIndexInTab?: number;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user