@imengyu/vue3-context-menu 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -480,12 +480,16 @@ export interface MenuItem {
|
|
|
480
480
|
onClick?: (e?: MouseEvent | KeyboardEvent) => void;
|
|
481
481
|
/**
|
|
482
482
|
* This event emit when submenu of this item is closing.
|
|
483
|
+
*
|
|
484
|
+
* @param itemInstance The instance of this submenu, undefined if in topmost level.
|
|
483
485
|
*/
|
|
484
|
-
onSubMenuClose?: ((itemInstance
|
|
486
|
+
onSubMenuClose?: ((itemInstance?: MenuItemContext) => void) | undefined;
|
|
485
487
|
/**
|
|
486
488
|
* This event emit when submenu of this item is showing.
|
|
489
|
+
*
|
|
490
|
+
* @param itemInstance The instance of this submenu, undefined if in topmost level.
|
|
487
491
|
*/
|
|
488
|
-
onSubMenuOpen?: ((itemInstance
|
|
492
|
+
onSubMenuOpen?: ((itemInstance?: MenuItemContext) => void) | undefined;
|
|
489
493
|
/**
|
|
490
494
|
* A custom render callback that allows you to customize the rendering
|
|
491
495
|
* of the current item.
|