mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 01:38:11 +08:00
feat(查询组件): 查询组件文本搜索时,支持回车触发查询 #14809
This commit is contained in:
committed by
xuwei-fit2cloud
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"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user