26 lines
634 B
Vue
26 lines
634 B
Vue
|
<script setup>
|
||
|
import { ref } from 'vue';
|
||
|
|
||
|
import AppMenuItem from './AppMenuItem.vue';
|
||
|
|
||
|
const model = ref([
|
||
|
{
|
||
|
items: [
|
||
|
{ label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/' },
|
||
|
{ label: 'User', icon: 'pi pi-fw pi-user', to: '/user' }]
|
||
|
},
|
||
|
|
||
|
]);
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<ul class="layout-menu">
|
||
|
<template v-for="(item, i) in model" :key="item">
|
||
|
<app-menu-item v-if="!item.separator" :item="item" :index="i"></app-menu-item>
|
||
|
<li v-if="item.separator" class="menu-separator"></li>
|
||
|
</template>
|
||
|
</ul>
|
||
|
</template>
|
||
|
|
||
|
<style lang="scss" scoped></style>
|