แก้ select /input

This commit is contained in:
setthawutttty 2024-12-02 15:12:53 +07:00
parent a934497083
commit 97879802b1
45 changed files with 138 additions and 279 deletions

View file

@ -164,13 +164,7 @@ onMounted(async () => {
label="ค้นหา"
>
<template v-slot:append>
<q-icon
v-if="filter !== ''"
name="clear"
class="cursor-pointer"
@click="filter = ''"
/>
<q-icon v-else name="search" color="grey-5" />
<q-icon name="search" />
</template>
</q-input>
<q-tree
@ -180,7 +174,7 @@ onMounted(async () => {
node-key="orgTreeId"
label-key="labelName"
v-model:expanded="expanded"
:filter="filter"
:filter="filter.trim()"
no-results-label="ไม่พบข้อมูลที่ค้นหา"
no-nodes-label="ไม่มีข้อมูล"
:style="

View file

@ -568,6 +568,8 @@ defineExpose({
emit-value
map-options
hide-bottom-space
hide-selected
fill-input
class="inputgreen"
lazy-rules
:rules="[

View file

@ -411,16 +411,9 @@ defineExpose({
outlined
v-model="filter"
label="ค้นหา"
class="inputgreen"
>
<template v-slot:append>
<q-icon
v-if="filter !== ''"
name="clear"
class="cursor-pointer"
@click="filter = ''"
/>
<q-icon v-else name="search" color="grey-5" />
<q-icon name="search" />
</template>
</q-input>
<q-tree
@ -430,7 +423,7 @@ defineExpose({
selected-color="primary"
node-key="id"
label-key="name"
:filter="filter"
:filter="filter.trim()"
:no-results-label="notFound"
:no-nodes-label="noData"
v-model:expanded="expanded"
@ -476,16 +469,9 @@ defineExpose({
outlined
v-model="filter2"
label="ค้นหา"
class="inputgreen"
>
<template v-slot:append>
<q-icon
v-if="filter2 !== ''"
name="clear"
class="cursor-pointer"
@click="filter2 = ''"
/>
<q-icon v-else name="search" color="grey-5" />
<q-icon name="search" />
</template>
</q-input>
<q-tree
@ -494,7 +480,7 @@ defineExpose({
:nodes="nodes"
node-key="id"
label-key="name"
:filter="filter2"
:filter="filter2.trim()"
:no-results-label="notFound"
:no-nodes-label="noData"
v-model:expanded="expanded2"
@ -682,6 +668,8 @@ defineExpose({
option-label="name"
option-value="id"
emit-value
fill-input
hide-selected
map-options
class="inputgreen"
use-input