Add itemicon slot similar to the one in the breadcrumbs component

pull/6031/head
Michael Deck 2024-07-08 14:13:32 -04:00
parent 2d05803e6b
commit a6dd6d17ae
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@
:pt="getPTOptions(`${id}_${index}`, 'pcAction')"
>
<template v-if="item.icon" #icon="slotProps">
<span :class="[item.icon, slotProps.class]" v-bind="getPTOptions(`${id}_${index}`, 'actionIcon')"></span>
<slot name="itemicon" :item="item" :class="[slotProps.class]">
<span :class="[item.icon, slotProps.class]" v-bind="getPTOptions(`${id}_${index}`, 'actionIcon')"></span>
</slot>
</template>
</Button>
</template>