scopedslot check added

pull/2890/head
Bahadir Sofuoglu 2022-08-25 11:56:47 +03:00
parent 36f3e3f20e
commit fa08915f75
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
</slot>
<ul ref="list" class="p-speeddial-list" role="menu">
<li v-for="(item, index) of model" :key="index" class="p-speeddial-item" :style="getItemStyle(index)" role="none">
<template v-if="!$slots.item">
<template v-if="!$slots.item && !$scopedSlots.item">
<a :href="item.url || '#'" role="menuitem" :class="['p-speeddial-action', { 'p-disabled': item.disabled }]" :target="item.target"
v-tooltip:[tooltipOptions]="{value: item.label, disabled: !tooltipOptions}" @click="onItemClick($event, item)" v-ripple>
<span v-if="item.icon" :class="['p-speeddial-action-icon', item.icon]"></span>
@ -338,4 +338,4 @@ export default {
.p-speeddial-direction-right .p-speeddial-list {
flex-direction: row;
}
</style>
</style>