mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 03:22:56 +08:00
feat(查询组件): 查询组件文本搜索时,支持回车触发查询 #14809
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run
This commit is contained in:
parent
afe7ee165e
commit
9b7386b30a
@ -109,6 +109,10 @@ const lineWidth = computed(() => {
|
||||
return { width: getCustomWidth() - 15 + 'px' }
|
||||
})
|
||||
|
||||
const handleKeyEnter = () => {
|
||||
handleValueChange()
|
||||
}
|
||||
|
||||
const handleInnerMouseDown = e => {
|
||||
e.stopPropagation()
|
||||
}
|
||||
@ -136,6 +140,7 @@ const handleInnerMouseDown = e => {
|
||||
:style="selectStyle"
|
||||
:placeholder="placeholderText"
|
||||
@blur="handleValueChange"
|
||||
@keydown.enter="handleKeyEnter"
|
||||
class="condition-value-input"
|
||||
v-model="config.conditionValueF"
|
||||
/>
|
||||
@ -160,6 +165,7 @@ const handleInnerMouseDown = e => {
|
||||
:style="selectStyle"
|
||||
@blur="handleValueChange"
|
||||
:placeholder="placeholderText"
|
||||
@keydown.enter="handleKeyEnter"
|
||||
class="condition-value-input"
|
||||
v-model="config.conditionValueS"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user