feat(division): create handler for division position

This commit is contained in:
riefive
2025-09-30 09:30:41 +07:00
parent 70a6e60769
commit 18eaef2e37
4 changed files with 116 additions and 16 deletions
+10 -16
View File
@@ -66,9 +66,15 @@ const headerPrep: HeaderPrep = {
minLength: 3,
debounceMs: 500,
showValidationFeedback: true,
onInput: (_val: string) => {},
onClick: () => {},
onClear: () => {},
onInput: (value: string) => {
searchInput.value = value
},
onClick: () => {
// open filter modal
},
onClear: () => {
// clear url param
},
},
addNav: {
label: 'Tambah',
@@ -82,18 +88,6 @@ const headerPrep: HeaderPrep = {
},
}
const refSearchNav: RefSearchNav = {
onClick: () => {
// open filter modal
},
onInput: (_val: string) => {
// filter patient list
},
onClear: () => {
// clear url param
},
}
provide('rec_id', recId)
provide('rec_action', recAction)
provide('rec_item', recItem)
@@ -169,7 +163,7 @@ onMounted(async () => {
v-model="searchInput"
:prep="headerPrep"
@search="handleSearch"
:ref-search-nav="refSearchNav"
:ref-search-nav="headerPrep.refSearchNav"
class="mb-4 xl:mb-5"
/>
<AppMedicineList :data="data" :pagination-meta="paginationMeta" @page-change="handlePageChange" />