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

@@ -48,7 +48,8 @@
"tabDetail": "Tab Detail Page",
"fullScreen": "FullScreen",
"clipboard": "Clipboard",
"menuWithQuery": "Menu With Query"
"menuWithQuery": "Menu With Query",
"openInNewWindow": "Open in New Window"
},
"breadcrumb": {
"navigation": "Breadcrumb Navigation",

View File

@@ -48,7 +48,8 @@
"tabDetail": "标签详情页",
"fullScreen": "全屏",
"clipboard": "剪贴板",
"menuWithQuery": "带参菜单"
"menuWithQuery": "带参菜单",
"openInNewWindow": "新窗口打开"
},
"breadcrumb": {
"navigation": "面包屑导航",

View File

@@ -174,7 +174,7 @@ const routes: RouteRecordRaw[] = [
import('#/views/demos/features/full-screen/index.vue'),
meta: {
icon: 'lucide:fullscreen',
title: $t('demos.features.title'),
title: $t('demos.features.fullScreen'),
},
},
{
@@ -200,6 +200,17 @@ const routes: RouteRecordRaw[] = [
title: $t('demos.features.menuWithQuery'),
},
},
{
name: 'NewWindowDemo',
path: '/demos/new-window',
component: () =>
import('#/views/demos/features/new-window/index.vue'),
meta: {
icon: 'lucide:app-window',
openInNewWindow: true,
title: $t('demos.features.openInNewWindow'),
},
},
{
name: 'VueQueryDemo',
path: '/demos/features/vue-query',

View File

@@ -0,0 +1,11 @@
<script lang="ts" setup>
import { Fallback } from '@vben/common-ui';
</script>
<template>
<Fallback
description="当前页面已在新窗口内打开"
status="coming-soon"
title="新窗口打开页面"
/>
</template>