pull/6176/head
tugcekucukoglu 2024-08-02 12:49:13 +03:00
parent 68ee8b9f52
commit 0506532822
2 changed files with 9 additions and 1 deletions

View File

@ -199,6 +199,10 @@ export interface FieldsetSlots {
* Collapsed state as a boolean
*/
collapsed: boolean;
/**
* Style class of the icon.
*/
class: string;
}): VNode[];
/**
* Custom toggler icon template.
@ -209,6 +213,10 @@ export interface FieldsetSlots {
* Collapsed state as a boolean
*/
collapsed: boolean;
/**
* Style class of the icon.
*/
class: string;
}): VNode[];
}

View File

@ -17,7 +17,7 @@
v-bind="{ ...toggleButtonProps, ...ptm('toggleButton') }"
>
<!--TODO: togglericon deprecated since v4.0-->
<slot :name="$slots.toggleicon ? 'toggleicon' : 'togglericon'" :collapsed="d_collapsed">
<slot :name="$slots.toggleicon ? 'toggleicon' : 'togglericon'" :collapsed="d_collapsed" :class="cx('toggleIcon')">
<component :is="d_collapsed ? 'PlusIcon' : 'MinusIcon'" :class="cx('toggleIcon')" v-bind="ptm('toggleIcon')" />
</slot>
<span :class="cx('legendLabel')" v-bind="ptm('legendLabel')">{{ legend }}</span>