feat(projects): support directory menu hide all child menus. fixed #325

This commit is contained in:
Soybean
2024-02-23 21:51:20 +08:00
parent 8ee2acc1fc
commit 7256ad4ee3
11 changed files with 89 additions and 2 deletions

View File

@ -26,6 +26,10 @@ declare module "@elegant-router/types" {
"500": "/500";
"about": "/about";
"function": "/function";
"function_hide-child": "/function/hide-child";
"function_hide-child_one": "/function/hide-child/one";
"function_hide-child_three": "/function/hide-child/three";
"function_hide-child_two": "/function/hide-child/two";
"function_multi-tab": "/function/multi-tab";
"function_tab": "/function/tab";
"home": "/home";
@ -109,6 +113,9 @@ declare module "@elegant-router/types" {
| "500"
| "login"
| "about"
| "function_hide-child_one"
| "function_hide-child_three"
| "function_hide-child_two"
| "function_multi-tab"
| "function_tab"
| "home"

View File

@ -54,7 +54,7 @@ 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').LastLevelRouteKey;
activeMenu?: import('@elegant-router/types').RouteKey;
/** 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 */