From bd1f5903651d80a209c0bbdb4e8cdcca10747db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 29 Aug 2023 17:44:18 +0300 Subject: [PATCH] Fixed #4352 - Menu: new submenuheader slot --- api-generator/components/menu.js | 6 +++++- components/lib/menu/Menu.d.ts | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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[]; } /**