tethys.backend/resources/js/Components/AsideMenuList.vue

30 lines
516 B
Vue
Raw Normal View History

2023-03-03 15:54:28 +00:00
<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>