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

47 lines
1.3 KiB
Vue
Raw Normal View History

2024-09-17 09:03:44 +00:00
<template>
2024-09-20 12:22:44 +00:00
<DocPTViewer :docs="docs">
2024-09-19 12:27:14 +00:00
<div class="relative w-full">
2024-09-17 09:03:44 +00:00
<Dock :model="items">
<template #itemicon="{ item }">
<img v-tooltip.top="item.label" :alt="item.label" :src="item.icon" style="width: 100%" />
</template>
</Dock>
</div>
</DocPTViewer>
</template>
<script>
import { getPTOptions } from '@/components/doc/helpers';
export default {
data() {
return {
items: [
{
label: 'Finder',
icon: 'https://primefaces.org/cdn/primevue/images/dock/finder.svg'
},
{
label: 'App Store',
icon: 'https://primefaces.org/cdn/primevue/images/dock/appstore.svg'
},
{
label: 'Photos',
icon: 'https://primefaces.org/cdn/primevue/images/dock/photos.svg'
},
{
label: 'Trash',
icon: 'https://primefaces.org/cdn/primevue/images/dock/trash.png'
}
],
2024-09-20 12:22:44 +00:00
docs: [
2024-09-17 09:03:44 +00:00
{
data: getPTOptions('Dock'),
key: 'Dock'
}
]
};
}
};
</script>