feat: menu routing support opens in a new window (#4715)

This commit is contained in:
Vben
2024-10-22 22:24:56 +08:00
committed by GitHub
parent f60796f961
commit 23768ea620
13 changed files with 315 additions and 190 deletions

View File

@@ -384,6 +384,10 @@ interface RouteMeta {
* The menu is visible, but access will be redirected to 403
*/
menuVisibleWithForbidden?: boolean;
/**
* Open in a new window
*/
openInNewWindow?: boolean;
/**
* Used for route->menu sorting
*/

View File

@@ -382,6 +382,10 @@ interface RouteMeta {
* 菜单可以看到但是访问会被重定向到403
*/
menuVisibleWithForbidden?: boolean;
/**
* 在新窗口打开
*/
openInNewWindow?: boolean;
/**
* 用于路由->菜单排序
*/
@@ -539,6 +543,13 @@ interface RouteMeta {
用于配置页面在菜单可以看到但是访问会被重定向到403。
### openInNewWindow
- 类型:`boolean`
- 默认值:`false`
设置为 `true` 时,会在新窗口打开页面。
### order
- 类型:`number`