pull/3892/head
Cagatay Civici 2023-04-19 10:58:21 +03:00
commit 4111787a0a
4 changed files with 14 additions and 14 deletions

View File

@ -2,9 +2,9 @@
<div :class="containerClass" :style="style"> <div :class="containerClass" :style="style">
<slot> <slot>
<PVSButton type="button" class="p-splitbutton-defaultbutton" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" v-bind="buttonProps"> <PVSButton type="button" class="p-splitbutton-defaultbutton" :label="label" :disabled="disabled" :aria-label="label" @click="onDefaultButtonClick" v-bind="buttonProps">
<template #icon> <template #icon="slotProps">
<slot name="icon"> <slot name="icon">
<span :class="icon" /> <span :class="[icon, slotProps.class]" />
</slot> </slot>
</template> </template>
</PVSButton> </PVSButton>
@ -21,9 +21,9 @@
@keydown="onDropdownKeydown" @keydown="onDropdownKeydown"
v-bind="menuButtonProps" v-bind="menuButtonProps"
> >
<template #icon> <template #icon="slotProps">
<slot name="menubuttonicon"> <slot name="menubuttonicon">
<component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="menuButtonIcon" /> <component :is="menuButtonIcon ? 'span' : 'ChevronDownIcon'" :class="[menuButtonIcon, slotProps.class]" />
</slot> </slot>
</template> </template>
</PVSButton> </PVSButton>

View File

@ -29,17 +29,17 @@ export interface ToolbarPassThroughOptions {
*/ */
root?: ToolbarPassThroughOptionType; root?: ToolbarPassThroughOptionType;
/** /**
* Uses to pass attributes to the groupleft's DOM element. * Uses to pass attributes to the groupstart's DOM element.
*/ */
groupleft?: ToolbarPassThroughOptionType; groupStart?: ToolbarPassThroughOptionType;
/** /**
* Uses to pass attributes to the groupcenter's DOM element. * Uses to pass attributes to the groupcenter's DOM element.
*/ */
groupcenter?: ToolbarPassThroughOptionType; groupCenter?: ToolbarPassThroughOptionType;
/** /**
* Uses to pass attributes to the groupright's DOM element. * Uses to pass attributes to the groupright's DOM element.
*/ */
groupright?: ToolbarPassThroughOptionType; groupEnd?: ToolbarPassThroughOptionType;
} }
/** /**

View File

@ -1,12 +1,12 @@
<template> <template>
<div class="p-toolbar p-component" role="toolbar" :aria-labelledby="ariaLabelledby" v-bind="ptm('root')"> <div class="p-toolbar p-component" role="toolbar" :aria-labelledby="ariaLabelledby" v-bind="ptm('root')">
<div class="p-toolbar-group-start p-toolbar-group-left" v-bind="ptm('groupleft')"> <div class="p-toolbar-group-start p-toolbar-group-left" v-bind="ptm('groupstart')">
<slot name="start"></slot> <slot name="start"></slot>
</div> </div>
<div class="p-toolbar-group-center" v-bind="ptm('groupcenter')"> <div class="p-toolbar-group-center" v-bind="ptm('groupcenter')">
<slot name="center"></slot> <slot name="center"></slot>
</div> </div>
<div class="p-toolbar-group-end p-toolbar-group-right" v-bind="ptm('groupright')"> <div class="p-toolbar-group-end p-toolbar-group-right" v-bind="ptm('groupend')">
<slot name="end"></slot> <slot name="end"></slot>
</div> </div>
</div> </div>

View File

@ -24892,15 +24892,15 @@
"description": "Uses to pass attributes to the root's DOM element." "description": "Uses to pass attributes to the root's DOM element."
}, },
{ {
"name": "groupleft", "name": "groupStart",
"optional": true, "optional": true,
"readonly": false, "readonly": false,
"type": "ToolbarPassThroughOptionType", "type": "ToolbarPassThroughOptionType",
"default": "", "default": "",
"description": "Uses to pass attributes to the groupleft's DOM element." "description": "Uses to pass attributes to the groupstart's DOM element."
}, },
{ {
"name": "groupcenter", "name": "groupCenter",
"optional": true, "optional": true,
"readonly": false, "readonly": false,
"type": "ToolbarPassThroughOptionType", "type": "ToolbarPassThroughOptionType",
@ -24908,7 +24908,7 @@
"description": "Uses to pass attributes to the groupcenter's DOM element." "description": "Uses to pass attributes to the groupcenter's DOM element."
}, },
{ {
"name": "groupright", "name": "groupEnd",
"optional": true, "optional": true,
"readonly": false, "readonly": false,
"type": "ToolbarPassThroughOptionType", "type": "ToolbarPassThroughOptionType",