feat(sep): adjust combobox filter

This commit is contained in:
riefive
2025-10-21 14:12:26 +07:00
parent 25d44323f4
commit 539b70b4b7
3 changed files with 28 additions and 7 deletions

No files matched your search

+5 -1
View File
@@ -32,6 +32,7 @@ const props = defineProps<{
const emit = defineEmits<{
(e: 'event', menu: string, value?: any): void
(e: 'fetch', value?: any): void
}>()
const isLoading = props.isLoading !== undefined ? props.isLoading : false
@@ -292,7 +293,7 @@ watch(props, (value) => {
</Label>
<Field :errMessage="errors.destinationClinic">
<Combobox
id="attendingDoctor"
id="destinationClinic"
v-model="destinationClinic"
v-bind="destinationClinicAttrs"
:items="facilities"
@@ -300,6 +301,7 @@ watch(props, (value) => {
placeholder="Pilih Klinik"
search-placeholder="Cari Klinik"
empty-message="Item tidak ditemukan"
@update:searchText="emit('fetch', { menu: 'destinationClinic', value: $event })"
/>
</Field>
</Cell>
@@ -348,6 +350,7 @@ watch(props, (value) => {
placeholder="Pilih DPJP"
search-placeholder="Cari DPJP"
empty-message="Item tidak ditemukan"
@update:searchText="emit('fetch', { menu: 'attendingDoctor', value: $event })"
/>
</Field>
</Cell>
@@ -367,6 +370,7 @@ watch(props, (value) => {
placeholder="Pilih Diagnosa Awal"
search-placeholder="Cari Diagnosa Awal"
empty-message="Item tidak ditemukan"
@update:searchText="emit('fetch', { menu: 'initialDiagnosis', value: $event })"
/>
</Field>
</Cell>