SplitButton: data-pc-section naming fixes
parent
7feca6e8a3
commit
ea7c1813f2
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div :class="containerClass" :style="style" v-bind="ptm('root')" data-pc-name="splitbutton" :data-pc-severity="severity">
|
||||
<slot>
|
||||
<PVSButton type="button" :class="cx('button')" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" :pt="ptm('button')" v-bind="buttonProps" :unstyled="unstyled">
|
||||
<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">
|
||||
<slot name="icon" :class="slotProps.class">
|
||||
<span :class="[icon, slotProps.class]" v-bind="ptm('button')['icon']" />
|
||||
|
@ -22,6 +22,7 @@
|
|||
:pt="ptm('menuButton')"
|
||||
v-bind="menuButtonProps"
|
||||
:unstyled="unstyled"
|
||||
data-pc-section="menubutton"
|
||||
>
|
||||
<template #icon="slotProps">
|
||||
<slot name="menubuttonicon" :class="slotProps.class">
|
||||
|
|
Loading…
Reference in New Issue