Skip to content

Commit

Permalink
Refactor #4235 - For SplitButton
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 4, 2023
1 parent 88cddc6 commit 8b5f61b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion components/lib/splitbutton/SplitButton.vue
Original file line number Diff line number Diff line change
@@ -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" />
Expand All @@ -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"
Expand Down

0 comments on commit 8b5f61b

Please sign in to comment.