Fixed #5199 - SplitButton templating is broken

pull/5206/head
Cagatay Civici 2024-02-03 11:49:13 +03:00
parent b8caa0a49f
commit f0deb6ec5e
1 changed files with 24 additions and 26 deletions

View File

@ -1,6 +1,5 @@
<template>
<div :class="containerClass" :style="style" v-bind="ptm('root')" :data-pc-severity="severity">
<slot>
<PVSButton
type="button"
:class="cx('button')"
@ -16,16 +15,15 @@
:pt="ptm('button')"
:unstyled="unstyled"
>
<template #icon="slotProps">
<template v-if="$slots.icon" #icon="slotProps">
<slot name="icon" :class="slotProps.class">
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" data-pc-section="buttonicon" />
</slot>
</template>
<template #default>
<slot name="buttoncontent"></slot>
<slot></slot>
</template>
</PVSButton>
</slot>
<PVSButton
ref="button"
type="button"