const editPatient = useModal({
component: PatientEditForm,
attrs: {
patientId: "",
afterEdit() {
console.log('dfdfdf');
},
},
});
function openEditForm(id: string) {
editPatient.patchOptions({
attrs: {
patientId: id,
},
});
editPatient.open();
};
<template #item-actions="{ id }">
<button class="mx-4" @click="openEditForm(id)">
<i class="fa-solid fa-pen-to-square"></i>
</button>
</template>