Работа над расширенным поиском

This commit is contained in:
Book Pauk
2022-12-07 15:52:43 +07:00
parent 85007f3e91
commit cff6e5aab9
3 changed files with 16 additions and 3 deletions

View File

@@ -17,6 +17,7 @@
class="q-mt-xs" style="width: 150px;" :label="`(${f.type}) ${f.field}`"
:bg-color="bgColor[f.field] || 'white'"
stack-label outlined dense clearable
@keypress="onKeyPress"
>
<q-tooltip v-if="search[f.field]" :delay="500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px">
{{ search[f.field] }}
@@ -125,6 +126,11 @@ class SelectExtSearchDialog {
this.error = error.join('<br>');
}
onKeyPress(event) {
if (event.code == 'Enter')
this.apply();
}
apply() {
this.validate();
if (!this.error) {