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,31 +1,29 @@
<template> <template>
<div :class="containerClass" :style="style" v-bind="ptm('root')" :data-pc-severity="severity"> <div :class="containerClass" :style="style" v-bind="ptm('root')" :data-pc-severity="severity">
<slot> <PVSButton
<PVSButton type="button"
type="button" :class="cx('button')"
:class="cx('button')" :label="label"
:label="label" :disabled="disabled"
:disabled="disabled" :severity="severity"
:severity="severity" :text="text"
:text="text" :outlined="outlined"
:outlined="outlined" :size="size"
:size="size" :aria-label="label"
:aria-label="label" @click="onDefaultButtonClick"
@click="onDefaultButtonClick" v-bind="buttonProps"
v-bind="buttonProps" :pt="ptm('button')"
:pt="ptm('button')" :unstyled="unstyled"
:unstyled="unstyled" >
> <template v-if="$slots.icon" #icon="slotProps">
<template #icon="slotProps"> <slot name="icon" :class="slotProps.class">
<slot name="icon" :class="slotProps.class"> <span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" data-pc-section="buttonicon" />
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" data-pc-section="buttonicon" /> </slot>
</slot> </template>
</template> <template #default>
<template #default> <slot></slot>
<slot name="buttoncontent"></slot> </template>
</template> </PVSButton>
</PVSButton>
</slot>
<PVSButton <PVSButton
ref="button" ref="button"
type="button" type="button"