From b16b74db7c159fdcfc8d21dfbf4384837938c786 Mon Sep 17 00:00:00 2001 From: 3octaves <873551943@qq.com> Date: Wed, 20 Nov 2024 09:47:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E5=85=A8=E7=AB=99=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E4=BC=98=E5=8C=96=20#7951?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/frontend/src/components/system-search/Index.vue | 2 +- dbm-ui/frontend/src/locales/zh-cn.json | 2 ++ .../frontend/src/views/quick-search/components/SearchInput.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dbm-ui/frontend/src/components/system-search/Index.vue b/dbm-ui/frontend/src/components/system-search/Index.vue index f9d0f901d1..2911e0e847 100644 --- a/dbm-ui/frontend/src/components/system-search/Index.vue +++ b/dbm-ui/frontend/src/components/system-search/Index.vue @@ -23,7 +23,7 @@ v-model="serach" class="search-input" clearable - :placeholder="t('全站搜索,支持多对象搜索,Enter搜索')" + :placeholder="t('全站搜索,支持多对象,Enter开启搜索')" :type="isFocused ? 'text' : 'search'" @enter="handleEnter" @focus="handleFocus" diff --git a/dbm-ui/frontend/src/locales/zh-cn.json b/dbm-ui/frontend/src/locales/zh-cn.json index 1fc5e07efc..72589cc577 100644 --- a/dbm-ui/frontend/src/locales/zh-cn.json +++ b/dbm-ui/frontend/src/locales/zh-cn.json @@ -3665,5 +3665,7 @@ "请选择Module": "请选择Module", "安装 Module任务提交成功": "安装 Module任务提交成功", "仅允许同一管控区域的集群一起安装module": "仅允许同一管控区域的集群一起安装module", + "全站搜索,支持多对象,Shift + Enter 换行,Enter键开启搜索": "全站搜索,支持多对象,Shift + Enter 换行,Enter键开启搜索", + "全站搜索,支持多对象,Enter开启搜索": "全站搜索,支持多对象,Enter开启搜索", "这行勿动!新增翻译请在上一行添加!": "" } diff --git a/dbm-ui/frontend/src/views/quick-search/components/SearchInput.vue b/dbm-ui/frontend/src/views/quick-search/components/SearchInput.vue index c462970cb0..73c302d045 100644 --- a/dbm-ui/frontend/src/views/quick-search/components/SearchInput.vue +++ b/dbm-ui/frontend/src/views/quick-search/components/SearchInput.vue @@ -28,7 +28,7 @@ autosize class="search-input-textarea" clearable - :placeholder="t('全站搜索,支持多对象搜索,Shift + Enter 换行,Enter搜索')" + :placeholder="t('全站搜索,支持多对象,Shift + Enter 换行,Enter键开启搜索')" :resize="false" type="textarea" @blur="handleBlur"