diff --git a/components/lib/panelmenu/PanelMenu.d.ts b/components/lib/panelmenu/PanelMenu.d.ts index 00629c012..bb77806a0 100755 --- a/components/lib/panelmenu/PanelMenu.d.ts +++ b/components/lib/panelmenu/PanelMenu.d.ts @@ -134,6 +134,10 @@ export interface PanelMenuState { * Defines current options in PanelMenu component. */ export interface PanelMenuContext { + /** + * Current menuitem + */ + item: any; /** * Index of the menuitem. */ diff --git a/components/lib/panelmenu/PanelMenuSub.vue b/components/lib/panelmenu/PanelMenuSub.vue index 8e9abff6c..36289091b 100755 --- a/components/lib/panelmenu/PanelMenuSub.vue +++ b/components/lib/panelmenu/PanelMenuSub.vue @@ -130,6 +130,7 @@ export default { getPTOptions(key, processedItem, index) { return this.ptm(key, { context: { + item: processedItem, index, active: this.isItemActive(processedItem), focused: this.isItemFocused(processedItem)