From 5936ff2e0ff9767bdd5f38bef52dfcf192748102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E4=BC=AF=E8=A8=80?= Date: Mon, 20 Jul 2026 00:20:00 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E7=B3=BB=E7=BB=9F=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=8A=E7=BA=A7=E8=8F=9C=E5=8D=95=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E5=90=8D=E7=A7=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit antdv-next TreeSelect组件没有title插槽 --- playground/src/views/system/menu/modules/form.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/playground/src/views/system/menu/modules/form.vue b/playground/src/views/system/menu/modules/form.vue index 815c4c14..44fa1539 100644 --- a/playground/src/views/system/menu/modules/form.vue +++ b/playground/src/views/system/menu/modules/form.vue @@ -88,7 +88,13 @@ const schema: VbenFormSchema[] = [ label: $t('system.menu.parent'), renderComponentContent() { return { - title({ label, meta }: { label: string; meta: Recordable }) { + treeTitleRender({ + label, + meta, + }: { + label: string; + meta: Recordable; + }) { const coms = []; if (!label) return ''; if (meta?.icon) { From 772286fb73645584ed4f3ff3679d5d2167020d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E4=BC=AF=E8=A8=80?= Date: Mon, 20 Jul 2026 00:46:27 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E8=B7=AF=E7=94=B1=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E4=B8=8D=E5=BC=BA=E5=88=B6=E4=BB=A5=E6=96=9C=E6=9D=A0=E5=BC=80?= =?UTF-8?q?=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容新dashboard路由配置 --- playground/src/views/system/menu/modules/form.vue | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/playground/src/views/system/menu/modules/form.vue b/playground/src/views/system/menu/modules/form.vue index 44fa1539..7029db00 100644 --- a/playground/src/views/system/menu/modules/form.vue +++ b/playground/src/views/system/menu/modules/form.vue @@ -135,12 +135,6 @@ const schema: VbenFormSchema[] = [ .string() .min(2, $t('ui.formRules.minLength', [$t('system.menu.path'), 2])) .max(100, $t('ui.formRules.maxLength', [$t('system.menu.path'), 100])) - .refine( - (value: string) => { - return value.startsWith('/'); - }, - $t('ui.formRules.startWith', [$t('system.menu.path'), '/']), - ) .refine( async (value: string) => { return !(await isMenuPathExists(value, formData.value?.id)); @@ -168,12 +162,6 @@ const schema: VbenFormSchema[] = [ .string() .min(2, $t('ui.formRules.minLength', [$t('system.menu.path'), 2])) .max(100, $t('ui.formRules.maxLength', [$t('system.menu.path'), 100])) - .refine( - (value: string) => { - return value.startsWith('/'); - }, - $t('ui.formRules.startWith', [$t('system.menu.path'), '/']), - ) .refine(async (value: string) => { return await isMenuPathExists(value, formData.value?.id); }, $t('system.menu.activePathMustExist')) From 054deae3bb6f2c12199ee60656d4715173299d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E4=BC=AF=E8=A8=80?= Date: Mon, 20 Jul 2026 00:54:56 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=E8=8F=9C=E5=8D=95=E7=BB=84=E4=BB=B6?= =?UTF-8?q?mock=E6=95=B0=E6=8D=AE=E4=B8=8E=E5=AE=9E=E9=99=85=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/backend-mock/utils/mock-data.ts | 46 ++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/apps/backend-mock/utils/mock-data.ts b/apps/backend-mock/utils/mock-data.ts index 84c416de..32d3a5d0 100644 --- a/apps/backend-mock/utils/mock-data.ts +++ b/apps/backend-mock/utils/mock-data.ts @@ -194,18 +194,46 @@ export const MOCK_MENUS = [ export const MOCK_MENU_LIST = [ { id: 1, - name: 'Workspace', + name: 'Dashboard', status: 1, - type: 'menu', - icon: 'mdi:dashboard', - path: '/workspace', - component: '/dashboard/workspace/index', + type: 'catalog', + icon: 'lucide:layout-dashboard', + path: '/dashboard', meta: { - icon: 'carbon:workspace', - title: 'page.dashboard.workspace', - affixTab: true, - order: 0, + icon: 'lucide:layout-dashboard', + order: -1, + title: 'page.dashboard.title', }, + children: [ + { + id: 101, + pid: 1, + status: 1, + type: 'menu', + name: 'Analytics', + path: 'analytics', + component: '/dashboard/analytics/index', + meta: { + affixTab: true, + icon: 'lucide:area-chart', + title: 'page.dashboard.analytics', + keepAlive: true, + }, + }, + { + id: 102, + pid: 1, + status: 1, + type: 'menu', + name: 'Workspace', + path: 'workspace', + component: '/views/dashboard/workspace/index', + meta: { + icon: 'carbon:workspace', + title: 'page.dashboard.workspace', + }, + }, + ], }, { id: 2, From 86e68bdde3baab513a88963f1c33d5d0d529e45e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E4=BC=AF=E8=A8=80?= Date: Mon, 20 Jul 2026 00:57:20 +0800 Subject: [PATCH 4/4] =?UTF-8?q?docs:=20=E5=90=8C=E6=AD=A5=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E6=8E=A5=E5=85=A5=E6=96=87=E6=A1=A3=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 提升示例菜单数据的整体一致性,避免多处信息不一致的情况 --- docs/src/en/guide/in-depth/access.md | 8 ++++---- docs/src/guide/in-depth/access.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/src/en/guide/in-depth/access.md b/docs/src/en/guide/in-depth/access.md index 545dddab..72aa272d 100644 --- a/docs/src/en/guide/in-depth/access.md +++ b/docs/src/en/guide/in-depth/access.md @@ -122,12 +122,12 @@ const dashboardMenus = [ title: 'page.dashboard.title', }, name: 'Dashboard', - path: '/', - redirect: '/analytics', + path: '/dashboard', + redirect: '/dashboard/analytics', children: [ { name: 'Analytics', - path: '/analytics', + path: 'analytics', // Here is the path of the page, need to remove 'views/' and '.vue' component: '/dashboard/analytics/index', meta: { @@ -137,7 +137,7 @@ const dashboardMenus = [ }, { name: 'Workspace', - path: '/workspace', + path: 'workspace', component: '/dashboard/workspace/index', meta: { title: 'page.dashboard.workspace', diff --git a/docs/src/guide/in-depth/access.md b/docs/src/guide/in-depth/access.md index bbce30a2..5de49b2a 100644 --- a/docs/src/guide/in-depth/access.md +++ b/docs/src/guide/in-depth/access.md @@ -120,12 +120,12 @@ const dashboardMenus = [ title: 'page.dashboard.title', }, name: 'Dashboard', - path: '/', - redirect: '/analytics', + path: '/dashboard', + redirect: '/dashboard/analytics', children: [ { name: 'Analytics', - path: '/analytics', + path: 'analytics', // 这里为页面的路径,需要去掉 views/ 和 .vue component: '/dashboard/analytics/index', meta: { @@ -135,7 +135,7 @@ const dashboardMenus = [ }, { name: 'Workspace', - path: '/workspace', + path: 'workspace', component: '/dashboard/workspace/index', meta: { title: 'page.dashboard.workspace',