Fixed #4352 - Menu: new submenuheader slot
parent
693ce32c6a
commit
bd1f590365
|
@ -71,11 +71,15 @@ const MenuSlots = [
|
|||
},
|
||||
{
|
||||
name: 'item',
|
||||
description: 'Template of a menuitem.'
|
||||
description: 'Custom item template.'
|
||||
},
|
||||
{
|
||||
name: 'itemicon',
|
||||
description: 'Custom item icon template.'
|
||||
},
|
||||
{
|
||||
name: 'submenuheader',
|
||||
description: 'Custom submenuheader template.'
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -233,6 +233,16 @@ export interface MenuSlots {
|
|||
*/
|
||||
class: any;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom item template.
|
||||
* @param {Object} scope - submenuheader slot's params.
|
||||
*/
|
||||
submenuheader(scope: {
|
||||
/**
|
||||
* Menuitem instance
|
||||
*/
|
||||
submenuheader: MenuItem;
|
||||
}): VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue