From e6072fb933a2a499bbb29ccbd407251def7d579b Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 11 Sep 2025 15:40:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=90=9C=E7=B4=A2=E9=9C=80=E8=A6=81=E5=9B=9E?= =?UTF-8?q?=E8=BD=A6=E4=B8=A4=E6=AC=A1=E6=89=8D=E8=83=BD=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=88=B0=E7=BB=93=E6=9E=9C=EF=BC=8C=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=98=BE=E7=A4=BA=E6=9A=82=E6=97=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/TextSearch.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/TextSearch.vue b/core/core-frontend/src/custom-component/v-query/TextSearch.vue index d42ec8cb48..2c1ccd019d 100644 --- a/core/core-frontend/src/custom-component/v-query/TextSearch.vue +++ b/core/core-frontend/src/custom-component/v-query/TextSearch.vue @@ -109,7 +109,10 @@ const lineWidth = computed(() => { return { width: getCustomWidth() - 15 + 'px', background: customStyle.border } }) -const handleKeyEnter = () => { +const handleKeyEnter = ($event: any = {}) => { + if ($event?.isComposing) { + return + } handleValueChange() } @@ -140,7 +143,7 @@ const handleInnerMouseDown = e => { :style="selectStyle" :placeholder="placeholderText" @blur="handleValueChange" - @keydown.enter="handleKeyEnter" + @keydown.enter.exact.prevent="($event: any) => handleKeyEnter($event)" class="condition-value-input" v-model="config.conditionValueF" /> @@ -165,7 +168,7 @@ const handleInnerMouseDown = e => { :style="selectStyle" @blur="handleValueChange" :placeholder="placeholderText" - @keydown.enter="handleKeyEnter" + @keydown.enter.exact.prevent="($event: any) => handleKeyEnter($event)" class="condition-value-input" v-model="config.conditionValueS" />