Refactor #4235 - For SplitButton
parent
88cddc68cf
commit
8b5f61b6ed
|
@ -1,7 +1,22 @@
|
|||
<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" data-pc-section="button">
|
||||
<PVSButton
|
||||
type="button"
|
||||
:class="cx('button')"
|
||||
:label="label"
|
||||
:disabled="disabled"
|
||||
:severity="severity"
|
||||
:text="text"
|
||||
:outlined="outlined"
|
||||
:size="size"
|
||||
: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']" data-pc-section="buttonicon" />
|
||||
|
@ -20,6 +35,10 @@
|
|||
@click="onDropdownButtonClick"
|
||||
@keydown="onDropdownKeydown"
|
||||
:pt="ptm('menuButton')"
|
||||
:severity="severity"
|
||||
:text="text"
|
||||
:outlined="outlined"
|
||||
:size="size"
|
||||
v-bind="menuButtonProps"
|
||||
:unstyled="unstyled"
|
||||
data-pc-section="menubutton"
|
||||
|
|
Loading…
Reference in New Issue