Add itemicon slot similar to the one in the breadcrumbs component
parent
2d05803e6b
commit
a6dd6d17ae
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue