feat (header): add button click functionality

This commit is contained in:
Abizrh
2025-08-10 17:08:09 +07:00
parent 66db96b9b6
commit 659a320439
3 changed files with 15 additions and 5 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
<script setup lang="ts">
const refSearchNav = {
onClick: () => {
console.log('onClick dari parent')
// open filter modal
},
onInput: (val: string) => {
console.log('>>>', val)
onInput: (_val: string) => {
// filter patient list
},
onClear: () => {
// clear url param
@@ -16,7 +16,7 @@ const hreaderPrep: HeaderPrep = {
icon: 'bi bi-journal-check',
addNav: {
label: 'Tambah',
onClick: () => (window.location.pathname = '/emergency/patient/add'),
onClick: () => navigateTo('/patient/add'),
},
}