fixing style input clear

This commit is contained in:
Warunee Tamkoo 2024-11-29 11:52:46 +07:00
parent 2043068dc0
commit 1a82792683
2 changed files with 3 additions and 18 deletions

View file

@ -343,20 +343,11 @@ onMounted(async () => {
placeholder="ค้นหา"
style="max-width: 200px"
class="q-ml-sm"
clearable
@keydown.enter.prevent="(queryParams.page = 1), fetchList()"
>
<template v-slot:append>
<q-icon v-if="queryParams.searchKeyword == ''" name="search" />
<q-icon
v-if="queryParams.searchKeyword !== ''"
name="clear"
class="cursor-pointer"
@click="
(queryParams.searchKeyword = ''),
(queryParams.page = 1),
fetchList()
"
/>
</template>
</q-input>
<!-- แสดงคอลมนใน table -->