SplitButton icon pt fix
parent
5a45168b8e
commit
82d2ede18a
|
@ -36,10 +36,6 @@ export interface SplitButtonPassThroughOptions {
|
||||||
* Uses to pass attributes to the button's DOM element.
|
* Uses to pass attributes to the button's DOM element.
|
||||||
*/
|
*/
|
||||||
button?: SplitButtonPassThroughOptionType;
|
button?: SplitButtonPassThroughOptionType;
|
||||||
/**
|
|
||||||
* Uses to pass attributes to the icon's DOM element.
|
|
||||||
*/
|
|
||||||
icon?: SplitButtonPassThroughOptionType;
|
|
||||||
/**
|
/**
|
||||||
* Uses to pass attributes to the Button component.
|
* Uses to pass attributes to the Button component.
|
||||||
* @see {@link ButtonPassThroughOptions}
|
* @see {@link ButtonPassThroughOptions}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="containerClass" :style="style" v-bind="ptm('root')">
|
<div :class="containerClass" :style="style" v-bind="ptm('root')">
|
||||||
<slot>
|
<slot>
|
||||||
<PVSButton type="button" class="p-splitbutton-defaultbutton" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" v-bind="{ ...buttonProps, ...ptm('button') }">
|
<PVSButton type="button" class="p-splitbutton-defaultbutton" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" :pt="ptm('button')" v-bind="buttonProps">
|
||||||
<template #icon="slotProps">
|
<template #icon="slotProps">
|
||||||
<slot name="icon">
|
<slot name="icon">
|
||||||
<span :class="[icon, slotProps.class]" v-bind="ptm('icon')" />
|
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" />
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
</PVSButton>
|
</PVSButton>
|
||||||
|
|
Loading…
Reference in New Issue