From a59b595334f27b5b1d3cc61a673cae949dced66c Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Tue, 7 Nov 2023 09:40:48 +0300 Subject: [PATCH] Fixed #4764 - ContextMenu: hasSubmenu options for item templating --- components/lib/contextmenu/ContextMenu.d.ts | 4 ++++ components/lib/contextmenu/ContextMenuSub.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/lib/contextmenu/ContextMenu.d.ts b/components/lib/contextmenu/ContextMenu.d.ts index 8e3131851b..124628bd41 100755 --- a/components/lib/contextmenu/ContextMenu.d.ts +++ b/components/lib/contextmenu/ContextMenu.d.ts @@ -290,6 +290,10 @@ export interface ContextMenuSlots { * Label property of the menuitem */ label: string | ((...args: any) => string) | undefined; + /** + * Whether or not there is a submenu + */ + hasSubmenu: boolean; /** * Binding properties of the menuitem */ diff --git a/components/lib/contextmenu/ContextMenuSub.vue b/components/lib/contextmenu/ContextMenuSub.vue index 95b4001040..587e224cdf 100755 --- a/components/lib/contextmenu/ContextMenuSub.vue +++ b/components/lib/contextmenu/ContextMenuSub.vue @@ -39,7 +39,7 @@ - +