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

36 lines
846 B
Vue
Raw Normal View History

2024-09-18 09:58:59 +00:00
<template>
<DocSectionText v-bind="$attrs" />
<DocPTViewer :docs="docs">
<SplitButton label="Save" icon="pi pi-check" dropdownIcon="pi pi-cog" @click="save" :model="items" />
</DocPTViewer>
</template>
<script>
import { getPTOptions } from '@/components/doc/helpers';
export default {
data() {
return {
items: [
{
label: 'Update'
},
{
label: 'Delete'
},
{
label: 'Vue Website'
},
{ label: 'Upload', to: '/fileupload' }
],
docs: [
{
data: getPTOptions('SplitButton'),
key: 'SplitButton'
}
]
};
}
};
</script>