Update SplitButton.vue
parent
4521b0f98b
commit
5f1c5aeb6b
|
@ -2,9 +2,9 @@
|
||||||
<div :class="containerClass" :style="style">
|
<div :class="containerClass" :style="style">
|
||||||
<slot>
|
<slot>
|
||||||
<PVSButton type="button" class="p-splitbutton-defaultbutton" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" v-bind="buttonProps">
|
<PVSButton type="button" class="p-splitbutton-defaultbutton" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" v-bind="buttonProps">
|
||||||
<template #icon>
|
<template #icon="slotProps">
|
||||||
<slot name="icon">
|
<slot name="icon">
|
||||||
<span :class="icon" />
|
<span :class="[icon, slotProps.class]" />
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
</PVSButton>
|
</PVSButton>
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
@keydown="onDropdownKeydown"
|
@keydown="onDropdownKeydown"
|
||||||
v-bind="menuButtonProps"
|
v-bind="menuButtonProps"
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon="slotProps">
|
||||||
<slot name="menubuttonicon">
|
<slot name="menubuttonicon">
|
||||||
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="menuButtonIcon" />
|
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="[menuButtonIcon, slotProps.class]" />
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
</PVSButton>
|
</PVSButton>
|
||||||
|
|
Loading…
Reference in New Issue