Merge pull request #6031 from likeadeckofcards/feature/add-item-icon-slot-to-speed-dial

Add itemicon slot similar to the one in the breadcrumbs component
pull/6465/head
Tuğçe Küçükoğlu 2024-09-24 08:34:57 +03:00 committed by GitHub
commit bc1d251b6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@
:pt="getPTOptions(`${id}_${index}`, 'pcAction')"
>
<template v-if="item.icon" #icon="slotProps">
<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>