mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
SplitButton icon sot updates
This commit is contained in:
parent
1f961e0a6e
commit
ebe3ac809c
2 changed files with 14 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
<slot>
|
||||
<PVSButton type="button" :class="cx('button')" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" :unstyled="unstyled" :pt="ptm('button')" v-bind="buttonProps">
|
||||
<template #icon="slotProps">
|
||||
<slot name="icon">
|
||||
<slot name="icon" :class="slotProps.class">
|
||||
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" />
|
||||
</slot>
|
||||
</template>
|
||||
|
@ -24,7 +24,7 @@
|
|||
v-bind="menuButtonProps"
|
||||
>
|
||||
<template #icon="slotProps">
|
||||
<slot name="menubuttonicon">
|
||||
<slot name="menubuttonicon" :class="slotProps.class">
|
||||
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="[menuButtonIcon, slotProps.class]" v-bind="ptm('menuButton')['icon']" />
|
||||
</slot>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue