fix(查询组件): 文本搜索需要回车两次才能搜索到结果,第一次图表显示暂无数据

This commit is contained in:
dataeaseShu
2025-09-11 15:40:06 +08:00
committed by dataeaseShu
parent 0be7703bfe
commit 6aaed95acb

View File

@@ -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"
/>