This commit is contained in:
2025-06-07 12:52:52 +07:00
parent 35772f38c9
commit 1a4edfded4
7 changed files with 57 additions and 34 deletions

No files matched your search

+2
View File
@@ -27,6 +27,8 @@ const state = ref(false)
<v-btn color="primary" class="ms-auto" @click="emit('detail', props?.item)">Detail</v-btn>
</template> -->
<slot name="actions"></slot>
</v-card>
<!-- <MasterDialogModal v-if="state" :stateValue="state" @stateValue="val => state = val" /> -->
+7 -7
View File
@@ -77,7 +77,7 @@ onMounted(async () => {
console.log('aaaaa', data.value);
});
const form = ref({})
// Helper function to create checkbox config
const createCheckbox = (namePrefix: string, menu: any) => {
const accessMap = {
@@ -126,12 +126,12 @@ const createMenuRow = (menu: any) => {
:rows="1+data.length"
:grid="[
[
['No', 1, 1, null, null],
['Nama Menu', 1, 1, null, null],
['Tambah', 1, 1, null, null],
['Ubah', 1, 1, null, null],
['Baca', 1, 1, null, null],
['Hapus', 1, 1, null, null],
['<strong>No</strong>', 1, 1, null, null],
['<strong>Nama Menu</strong>', 1, 1, null, null],
['<strong>Tambah</strong>', 1, 1, null, null],
['<strong>Ubah</strong>', 1, 1, null, null],
['<strong>Baca</strong>', 1, 1, null, null],
['<strong>Hapus</strong>', 1, 1, null, null],
],
...data.map((menu:any) => createMenuRow(menu))
]"