diff --git a/api-generator/components/menu.js b/api-generator/components/menu.js index 3c1dfa925..11fd4ab7b 100644 --- a/api-generator/components/menu.js +++ b/api-generator/components/menu.js @@ -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.' } ]; diff --git a/components/lib/menu/Menu.d.ts b/components/lib/menu/Menu.d.ts index 75ae6422f..4b15a86c1 100755 --- a/components/lib/menu/Menu.d.ts +++ b/components/lib/menu/Menu.d.ts @@ -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[]; } /**