Fixed #6144
parent
68ee8b9f52
commit
0506532822
|
@ -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[];
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue