Fixed #4352 - Menu: new submenuheader slot

pull/4353/head
Tuğçe Küçükoğlu 2023-08-29 17:44:18 +03:00
parent 693ce32c6a
commit bd1f590365
2 changed files with 15 additions and 1 deletions

View File

@ -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.'
}
];

View File

@ -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[];
}
/**