refactor: add keydown event listener to search input
This commit is contained in:
parent
3c91c0db16
commit
b1a7983b00
8 changed files with 8 additions and 0 deletions
|
|
@ -332,6 +332,7 @@ watch(
|
|||
outlined
|
||||
dense
|
||||
label="คำค้น"
|
||||
@keydown.enter.prevent="searchInput()"
|
||||
>
|
||||
<template v-slot:after>
|
||||
<q-btn
|
||||
|
|
|
|||
|
|
@ -187,6 +187,7 @@ watch(modal, (val) => {
|
|||
dense
|
||||
label="คำค้น"
|
||||
@clear="search = ''"
|
||||
@keydown.enter.prevent="onSearchData()"
|
||||
/>
|
||||
</div>
|
||||
<q-checkbox
|
||||
|
|
|
|||
|
|
@ -201,6 +201,7 @@ watch(modal, (val) => {
|
|||
hide-bottom-space
|
||||
dense
|
||||
label="คำค้น"
|
||||
@keydown.enter.prevent="onSearchData()"
|
||||
/>
|
||||
</div>
|
||||
<q-checkbox
|
||||
|
|
|
|||
|
|
@ -322,6 +322,7 @@ watch(modal, async (val) => {
|
|||
hide-bottom-space
|
||||
dense
|
||||
label="คำค้น"
|
||||
@keydown.enter.prevent="onSearchData(true)"
|
||||
>
|
||||
<template v-slot:after>
|
||||
<q-btn
|
||||
|
|
|
|||
|
|
@ -294,6 +294,7 @@ watch(
|
|||
hide-bottom-space
|
||||
dense
|
||||
label="คำค้น"
|
||||
@keydown.enter.prevent="searchInput()"
|
||||
>
|
||||
<template v-slot:after>
|
||||
<q-btn
|
||||
|
|
|
|||
|
|
@ -280,6 +280,7 @@ onMounted(async () => {
|
|||
hide-bottom-space
|
||||
dense
|
||||
label="คำค้น"
|
||||
@keydown.enter.prevent="(pagination.page = 1), searchInput()"
|
||||
>
|
||||
<template v-slot:after>
|
||||
<q-btn
|
||||
|
|
|
|||
|
|
@ -905,6 +905,7 @@ onMounted(() => {
|
|||
hide-bottom-space
|
||||
dense
|
||||
label="คำค้น"
|
||||
@keydown.enter.prevent="(formFilter.page = 1), fetchListPerson()"
|
||||
>
|
||||
<template v-slot:after>
|
||||
<q-btn
|
||||
|
|
|
|||
|
|
@ -719,6 +719,7 @@ onMounted(async () => {
|
|||
dense
|
||||
label="คำค้น"
|
||||
@clear="search = ''"
|
||||
@keydown.enter.prevent="onSearchData"
|
||||
/>
|
||||
</div>
|
||||
<q-checkbox
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue