From 627f847d5efd83e5733d3bd309bd30749da7ff83 Mon Sep 17 00:00:00 2001 From: lai <10633968+laiyujun1@user.noreply.gitee.com> Date: Mon, 8 Sep 2025 19:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=90=9C=E7=B4=A2=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/en-US.ts | 2 + src/i18n/locales/zh-CN.ts | 2 + src/layouts/components/RightContent.vue | 6 + src/layouts/components/SearchMenu.vue | 377 ++++++++++++++++++++++++ 4 files changed, 387 insertions(+) create mode 100644 src/layouts/components/SearchMenu.vue diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 0b026cc6..9b9f945a 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -10,6 +10,8 @@ export default { desc: 'Core Network Management Platform', loading: 'Please wait...', inputPlease: 'Please input', + searchPlease: 'Search menus...', + searchTip: 'Enter keywords to search menus', selectPlease: 'please select', tipTitle: 'Prompt', msgSuccess: 'Success {msg}', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index d74eb12a..1afd0b2c 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -10,6 +10,8 @@ export default { desc: '核心网管理平台', loading: '请稍等...', inputPlease: '请输入', + searchPlease: '搜索菜单...', + searchTip: '输入关键词搜索菜单', selectPlease: '请选择', tipTitle: '提示', msgSuccess: '{msg} 成功', diff --git a/src/layouts/components/RightContent.vue b/src/layouts/components/RightContent.vue index 1081d822..9b116921 100644 --- a/src/layouts/components/RightContent.vue +++ b/src/layouts/components/RightContent.vue @@ -4,6 +4,7 @@ import svgDark from '@/assets/svg/dark.svg'; import { MenuInfo } from 'ant-design-vue/es/menu/src/interface'; import { viewTransitionTheme } from 'antdv-pro-layout'; import { ProModal } from 'antdv-pro-modal'; +import SearchMenu from './SearchMenu.vue'; import { ref } from 'vue'; import { useRoute, useRouter } from 'vue-router'; import { useFullscreen } from '@vueuse/core'; @@ -84,6 +85,11 @@ function fnChangeLocale(e: any) {