tethys.backend/resources/js/Components/AsideMenuList.vue
2023-03-17 16:13:37 +01:00

30 lines
580 B
Vue

<script setup>
import AsideMenuItem from '@/Components/AsideMenuItem.vue';
defineProps({
isDropdownList: Boolean,
menu: {
type: Object,
default: () => {},
},
});
const emit = defineEmits(['menu-click']);
const menuClick = (event, item) => {
emit('menu-click', event, item);
};
</script>
<template>
<ul>
<AsideMenuItem
v-for="(item, index) in menu"
:key="index"
v-bind:item="item"
:is-dropdown-list="isDropdownList"
@menu-click="menuClick"
/>
</ul>
</template>