Refactor #4024 - For SplitButton
parent
fc4ea57860
commit
1f961e0a6e
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="containerClass" :style="style" v-bind="ptm('root')" data-pc-name="splitbutton" :data-pc-severity="severity">
|
<div :class="containerClass" :style="style" v-bind="ptm('root')" data-pc-name="splitbutton" :data-pc-severity="severity">
|
||||||
<slot>
|
<slot>
|
||||||
<PVSButton type="button" :class="cx('button')" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" :unstyled="unstyled" v-bind="{ ...buttonProps, ...ptm('button') }">
|
<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">
|
<template #icon="slotProps">
|
||||||
<slot name="icon">
|
<slot name="icon">
|
||||||
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" />
|
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" />
|
||||||
|
|
Loading…
Reference in New Issue