SplitButton data-pc-section updates
parent
2331e59525
commit
a1b228dfbe
|
@ -4,7 +4,7 @@
|
||||||
<PVSButton type="button" :class="cx('button')" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" :pt="ptm('button')" v-bind="buttonProps" :unstyled="unstyled" data-pc-section="button">
|
<PVSButton type="button" :class="cx('button')" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" :pt="ptm('button')" v-bind="buttonProps" :unstyled="unstyled" data-pc-section="button">
|
||||||
<template v-if="icon" #icon="slotProps">
|
<template v-if="icon" #icon="slotProps">
|
||||||
<slot name="icon" :class="slotProps.class">
|
<slot name="icon" :class="slotProps.class">
|
||||||
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" />
|
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" data-pc-section="buttonicon" />
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
</PVSButton>
|
</PVSButton>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
>
|
>
|
||||||
<template #icon="slotProps">
|
<template #icon="slotProps">
|
||||||
<slot name="menubuttonicon" :class="slotProps.class">
|
<slot name="menubuttonicon" :class="slotProps.class">
|
||||||
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="[menuButtonIcon, slotProps.class]" v-bind="ptm('menuButton')['icon']" />
|
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="[menuButtonIcon, slotProps.class]" v-bind="ptm('menuButton')['icon']" data-pc-section="menubuttonicon" />
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
</PVSButton>
|
</PVSButton>
|
||||||
|
|
Loading…
Reference in New Issue