Class added to slotprops

pull/4339/head
Bahadır Sofuoğlu 2023-08-31 18:31:18 +03:00
parent 3a2fc4339d
commit 175bca2afd
2 changed files with 5 additions and 1 deletions

View File

@ -214,6 +214,10 @@ export interface SplitButtonSlots {
* Menuitem instance
*/
item: MenuItem;
/**
* Style class of the item icon element.
*/
class: any;
}): VNode[];
}

View File

@ -51,7 +51,7 @@
</PVSButton>
<PVSMenu ref="menu" :id="ariaId + '_overlay'" :model="model" :popup="true" :autoZIndex="autoZIndex" :baseZIndex="baseZIndex" :appendTo="appendTo" :unstyled="unstyled" :pt="ptm('menu')">
<template v-if="$slots.menuitemicon" #itemicon="slotProps">
<slot name="menuitemicon" :item="slotProps.item" />
<slot name="menuitemicon" :item="slotProps.item" :class="slotProps.class" />
</template>
</PVSMenu>
</div>