feat(查询组件): 查询组件文本搜索时,支持回车触发查询 #14809
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
dataeaseShu 2025-02-10 14:08:16 +08:00 committed by xuwei-fit2cloud
parent afe7ee165e
commit 9b7386b30a

View File

@ -109,6 +109,10 @@ const lineWidth = computed(() => {
return { width: getCustomWidth() - 15 + 'px' } return { width: getCustomWidth() - 15 + 'px' }
}) })
const handleKeyEnter = () => {
handleValueChange()
}
const handleInnerMouseDown = e => { const handleInnerMouseDown = e => {
e.stopPropagation() e.stopPropagation()
} }
@ -136,6 +140,7 @@ const handleInnerMouseDown = e => {
:style="selectStyle" :style="selectStyle"
:placeholder="placeholderText" :placeholder="placeholderText"
@blur="handleValueChange" @blur="handleValueChange"
@keydown.enter="handleKeyEnter"
class="condition-value-input" class="condition-value-input"
v-model="config.conditionValueF" v-model="config.conditionValueF"
/> />
@ -160,6 +165,7 @@ const handleInnerMouseDown = e => {
:style="selectStyle" :style="selectStyle"
@blur="handleValueChange" @blur="handleValueChange"
:placeholder="placeholderText" :placeholder="placeholderText"
@keydown.enter="handleKeyEnter"
class="condition-value-input" class="condition-value-input"
v-model="config.conditionValueS" v-model="config.conditionValueS"
/> />