primevue-mirror/apps/showcase/doc/menu/pt/PTViewer.vue

55 lines
1.4 KiB
Vue
Raw Normal View History

2024-09-17 09:03:44 +00:00
<template>
<DocSectionText v-bind="$attrs" />
<DocPTViewer :docs="ptViewerDoc">
<Menu :model="items" />
</DocPTViewer>
</template>
<script>
import { getPTOptions } from '@/components/doc/helpers';
export default {
data() {
return {
items: [
{
label: 'Documents',
items: [
{
label: 'New',
icon: 'pi pi-plus'
},
{
label: 'Search',
icon: 'pi pi-search'
}
]
},
{
separator: true
},
{
label: 'Profile',
items: [
{
label: 'Settings',
icon: 'pi pi-cog'
},
{
label: 'Logout',
icon: 'pi pi-sign-out'
}
]
}
],
ptViewerDoc: [
{
data: getPTOptions('Menu'),
key: 'Menu'
}
]
};
}
};
</script>