cherry-pick: pub components from feat/laporan-tindakan-185

This commit is contained in:
Khafid Prayoga
2025-12-08 11:01:44 +07:00
parent 5e3d0d7911
commit a5ec824f4d
19 changed files with 434 additions and 85 deletions

No files matched your search

+1 -10
View File
@@ -4,10 +4,6 @@ import { type EncounterItem } from "~/handlers/encounter-init.handler";
const props = defineProps<{
initialActiveMenu: string
data: EncounterItem[]
canCreate?: boolean
canRead?: boolean
canUpdate?: boolean
canDelete?: boolean
}>()
const activeMenu = ref(props.initialActiveMenu)
@@ -42,12 +38,7 @@ function changeMenu(value: string) {
class="flex-1 rounded-md border bg-white p-4 shadow-sm dark:bg-neutral-950">
<component
:is="data.find((m) => m.id === activeMenu)?.component"
v-bind="data.find((m) => m.id === activeMenu)?.props"
:can-create="canCreate"
:can-read="canRead"
:can-update="canUpdate"
:can-delete="canDelete"
/>
v-bind="data.find((m) => m.id === activeMenu)?.props" />
</div>
</div>
</div>