SplitButton: data-pc-section naming fixes

pull/4172/head
Tuğçe Küçükoğlu 2023-07-19 15:44:39 +03:00
parent 7feca6e8a3
commit ea7c1813f2
1 changed files with 2 additions and 1 deletions

View File

@ -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">