From f3a767437c0a884c12612a6fdddea50da3d39b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AD=90=E9=BB=98?= <925456043@qq.com> Date: Fri, 6 Mar 2026 20:03:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E9=A1=B6=E9=83=A8=E6=90=9C=E7=B4=A2=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重做全局搜索入口的展开、关闭和定位交互 - 优化搜索面板结果展示、键盘导航和浮层结构 --- .../widgets/global-search/global-search.vue | 268 ++++++++++++------ .../widgets/global-search/search-panel.vue | 235 +++++++-------- 2 files changed, 288 insertions(+), 215 deletions(-) diff --git a/easyflow-ui-usercenter/packages/effects/layouts/src/widgets/global-search/global-search.vue b/easyflow-ui-usercenter/packages/effects/layouts/src/widgets/global-search/global-search.vue index 4a57c35..8775f81 100644 --- a/easyflow-ui-usercenter/packages/effects/layouts/src/widgets/global-search/global-search.vue +++ b/easyflow-ui-usercenter/packages/effects/layouts/src/widgets/global-search/global-search.vue @@ -1,21 +1,15 @@ - - - - - - - - - - - - - - - {{ $t('ui.widgets.search.select') }} - - - - - {{ $t('ui.widgets.search.navigate') }} - - - - {{ $t('ui.widgets.search.close') }} - - - - + - + + + - - {{ $t('ui.widgets.search.title') }} - - - {{ isWindowsOs() ? 'Ctrl' : '⌘' }} - K - - + + + + + + + + + + + + diff --git a/easyflow-ui-usercenter/packages/effects/layouts/src/widgets/global-search/search-panel.vue b/easyflow-ui-usercenter/packages/effects/layouts/src/widgets/global-search/search-panel.vue index 76960ed..b08552f 100644 --- a/easyflow-ui-usercenter/packages/effects/layouts/src/widgets/global-search/search-panel.vue +++ b/easyflow-ui-usercenter/packages/effects/layouts/src/widgets/global-search/search-panel.vue @@ -1,17 +1,17 @@ - - - - - - {{ $t('ui.widgets.search.noResults') }} - - "{{ keyword }}" - - - - - - - {{ $t('ui.widgets.search.noRecent') }} - - - - + + - {{ $t('ui.widgets.search.recent') }} - - - - - {{ item.name }} - + + + + + + + + {{ chunk.text }} + + + + + +
- {{ $t('ui.widgets.search.noResults') }} - - "{{ keyword }}" - -
- {{ $t('ui.widgets.search.noRecent') }} -