restyling dashboard layout

This commit is contained in:
Geriano
2022-09-08 15:09:50 +07:00
parent 364af7a558
commit 5fd44b83a6
9 changed files with 106 additions and 39 deletions

View File

@@ -7,7 +7,7 @@ import Icon from '@/Components/Icon.vue'
import Swal from 'sweetalert2'
import { Inertia } from '@inertiajs/inertia'
const self = getCurrentInstance()
const { open } = defineProps(['open'])
const menus = ref(usePage().props.value.$menus || [])
const { user } = usePage().props.value
@@ -44,7 +44,7 @@ const f = async () => {
<template>
<div class="flex flex-col w-full h-full bg-inherit overflow-auto">
<transition name="op" mode="in-out">
<Builder v-if="menus.length" :menus="menus" />
<Builder v-if="menus.length" :menus="menus" :open="open" />
</transition>
</div>