From c31d21be50ee6f6db569fe730e01aaed4860f0cb Mon Sep 17 00:00:00 2001 From: vben Date: Tue, 21 May 2024 21:45:48 +0800 Subject: [PATCH] feat(other): The menu supports jumping to external links and fixing some known problems --- apps/antd-view/package.json | 5 +- apps/antd-view/src/layout.vue | 3 +- apps/antd-view/src/router/guard/access.ts | 5 +- apps/antd-view/src/router/guard/index.ts | 2 +- apps/antd-view/src/router/index.ts | 2 +- apps/antd-view/src/router/routes/index.ts | 26 +- .../src/router/routes/modules/vben.ts | 50 +++ .../lint-configs/eslint-config/package.json | 6 +- internal/tailwind-config/package.json | 2 +- internal/vite-config/package.json | 2 +- package.json | 4 +- .../@vben-core/shared/typings/global.d.ts | 4 + .../menu-ui/src/components/menu-item.vue | 7 +- .../uikit/menu-ui/src/components/menu.vue | 7 +- .../src/components/sub-menu-content.vue | 2 +- .../uikit/menu-ui/src/styles/index.scss | 2 +- .../breadcrumb/breadcrumb-background.vue | 4 +- .../src/components/breadcrumb/breadcrumb.vue | 36 ++- .../uikit/tabs-ui/src/components/tabs.vue | 2 +- .../uikit/tabs-ui/src/styles/tabs.scss | 31 +- .../business/layouts/src/basic/layout.vue | 18 +- .../layouts/src/basic/menu/extra-menu.vue | 10 +- .../layouts/src/basic/menu/use-extra-menu.ts | 9 +- .../layouts/src/basic/menu/use-mixed-menu.ts | 10 +- .../layouts/src/basic/menu/use-navigation.ts | 19 ++ .../layouts/src/basic/tabs/use-tabs.ts | 22 +- .../layouts/src/basic/widgets/breadcrumb.vue | 3 +- packages/constants/build.config.ts | 7 + packages/constants/package.json | 45 +++ packages/constants/src/index.ts | 1 + packages/constants/src/vben.ts | 1 + packages/constants/tsconfig.json | 5 + packages/locales/build.config.ts | 1 + packages/locales/package.json | 5 + packages/locales/src/helper.ts | 8 + packages/locales/src/langs/en-US.yaml | 4 + packages/locales/src/langs/zh-CN.yaml | 4 + packages/utils/build.config.ts | 7 + packages/utils/package.json | 48 +++ packages/utils/src/index.ts | 1 + packages/utils/tsconfig.json | 5 + pnpm-lock.yaml | 305 ++++++++++-------- vben-admin.code-workspace | 8 + 43 files changed, 505 insertions(+), 243 deletions(-) create mode 100644 apps/antd-view/src/router/routes/modules/vben.ts create mode 100644 packages/business/layouts/src/basic/menu/use-navigation.ts create mode 100644 packages/constants/build.config.ts create mode 100644 packages/constants/package.json create mode 100644 packages/constants/src/index.ts create mode 100644 packages/constants/src/vben.ts create mode 100644 packages/constants/tsconfig.json create mode 100644 packages/locales/src/helper.ts create mode 100644 packages/utils/build.config.ts create mode 100644 packages/utils/package.json create mode 100644 packages/utils/src/index.ts create mode 100644 packages/utils/tsconfig.json diff --git a/apps/antd-view/package.json b/apps/antd-view/package.json index eea84b63..1f984a6d 100644 --- a/apps/antd-view/package.json +++ b/apps/antd-view/package.json @@ -26,17 +26,18 @@ "dependencies": { "@vben-core/design": "workspace:*", "@vben-core/design-tokens": "workspace:*", - "@vben-core/toolkit": "workspace:*", "@vben-core/typings": "workspace:*", "@vben/common-ui": "workspace:*", + "@vben/constants": "workspace:*", "@vben/hooks": "workspace:*", "@vben/icons": "workspace:*", "@vben/layouts": "workspace:*", "@vben/locales": "workspace:*", "@vben/preference": "workspace:*", "@vben/stores": "workspace:*", + "@vben/utils": "workspace:*", "ant-design-vue": "^4.2.1", - "axios": "^1.6.8", + "axios": "^1.7.1", "dayjs": "^1.11.11", "vue": "^3.4.27", "vue-router": "^4.3.2" diff --git a/apps/antd-view/src/layout.vue b/apps/antd-view/src/layout.vue index fb43f43b..c3482ea5 100644 --- a/apps/antd-view/src/layout.vue +++ b/apps/antd-view/src/layout.vue @@ -1,8 +1,6 @@