Fixed #6463
parent
bc1d251b6c
commit
2f5face87d
|
@ -356,6 +356,21 @@ export interface SpeedDialSlots {
|
||||||
*/
|
*/
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
}): VNode[];
|
}): VNode[];
|
||||||
|
/**
|
||||||
|
* Custom icon template.
|
||||||
|
* @param {Object} scope - icon slot's params.
|
||||||
|
*/
|
||||||
|
itemicon(scope: {
|
||||||
|
/**
|
||||||
|
* Menuitem instance
|
||||||
|
* @type {MenuItem}
|
||||||
|
*/
|
||||||
|
item: MenuItem;
|
||||||
|
/**
|
||||||
|
* Style class of the icon template
|
||||||
|
*/
|
||||||
|
class: any;
|
||||||
|
}): VNode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
:pt="getPTOptions(`${id}_${index}`, 'pcAction')"
|
:pt="getPTOptions(`${id}_${index}`, 'pcAction')"
|
||||||
>
|
>
|
||||||
<template v-if="item.icon" #icon="slotProps">
|
<template v-if="item.icon" #icon="slotProps">
|
||||||
<slot name="itemicon" :item="item" :class="[slotProps.class]">
|
<slot name="itemicon" :item="item" :class="slotProps.class">
|
||||||
<span :class="[item.icon, slotProps.class]" v-bind="getPTOptions(`${id}_${index}`, 'actionIcon')"></span>
|
<span :class="[item.icon, slotProps.class]" v-bind="getPTOptions(`${id}_${index}`, 'actionIcon')"></span>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue