mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #4729 - SplitButton: new buttoncontent and item slots
This commit is contained in:
parent
25f059ee43
commit
6a74a6be89
2 changed files with 34 additions and 2 deletions
|
@ -22,6 +22,9 @@
|
|||
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" data-pc-section="buttonicon" />
|
||||
</slot>
|
||||
</template>
|
||||
<template #default>
|
||||
<slot name="buttoncontent"></slot>
|
||||
</template>
|
||||
</PVSButton>
|
||||
</slot>
|
||||
<PVSButton
|
||||
|
@ -53,6 +56,9 @@
|
|||
<template v-if="$slots.menuitemicon" #itemicon="slotProps">
|
||||
<slot name="menuitemicon" :item="slotProps.item" :class="slotProps.class" />
|
||||
</template>
|
||||
<template v-if="$slots.item" #item="slotProps">
|
||||
<slot name="item" :item="slotProps.item" :hasSubmenu="slotProps.hasSubmenu" :label="slotProps.label" :props="slotProps.props"></slot>
|
||||
</template>
|
||||
</PVSMenu>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue