30 lines
516 B
Vue
30 lines
516 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>
|