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