parent
e0b2b1d34a
commit
4375930cc5
|
@ -60,8 +60,8 @@ const PanelSlots = [
|
||||||
description: "Custom content for the header's icon."
|
description: "Custom content for the header's icon."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'headericon',
|
name: 'togglericon',
|
||||||
description: "Custom content for the component's header icon."
|
description: "Custom content for the component's toggler icon."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'footer',
|
name: 'footer',
|
||||||
|
|
|
@ -61,9 +61,9 @@ export interface PanelPassThroughOptions {
|
||||||
*/
|
*/
|
||||||
toggler?: PanelPassThroughOptionType;
|
toggler?: PanelPassThroughOptionType;
|
||||||
/**
|
/**
|
||||||
* Uses to pass attributes to the headericon's DOM element.
|
* Uses to pass attributes to the togglericon's DOM element.
|
||||||
*/
|
*/
|
||||||
headericon?: PanelPassThroughOptionType;
|
togglericon?: PanelPassThroughOptionType;
|
||||||
/**
|
/**
|
||||||
* Uses to pass attributes to the toggleablecontent's DOM element.
|
* Uses to pass attributes to the toggleablecontent's DOM element.
|
||||||
*/
|
*/
|
||||||
|
@ -143,10 +143,10 @@ export interface PanelSlots {
|
||||||
*/
|
*/
|
||||||
icons(): VNode[];
|
icons(): VNode[];
|
||||||
/**
|
/**
|
||||||
* Custom header icon template of panel.
|
* Custom toggler icon template of panel.
|
||||||
* @param {Object} scope - header icon slot's params.
|
* @param {Object} scope - toggler icon slot's params.
|
||||||
*/
|
*/
|
||||||
headericon(scope: {
|
togglericon(scope: {
|
||||||
/**
|
/**
|
||||||
* Collapsed state as a boolean
|
* Collapsed state as a boolean
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
@keydown="onKeyDown"
|
@keydown="onKeyDown"
|
||||||
v-bind="{ ...toggleButtonProps, ...ptm('toggler') }"
|
v-bind="{ ...toggleButtonProps, ...ptm('toggler') }"
|
||||||
>
|
>
|
||||||
<slot name="headericon" :collapsed="d_collapsed">
|
<slot name="togglericon" :collapsed="d_collapsed">
|
||||||
<component :is="d_collapsed ? 'PlusIcon' : 'MinusIcon'" v-bind="ptm('headericon')" />
|
<component :is="d_collapsed ? 'PlusIcon' : 'MinusIcon'" v-bind="ptm('togglericon')" />
|
||||||
</slot>
|
</slot>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue