Refactor #4211 - For Menubar

pull/4239/head
Tuğçe Küçükoğlu 2023-08-03 10:26:16 +03:00
parent 2e42f65061
commit 445776316e
2 changed files with 6 additions and 1 deletions

View File

@ -169,6 +169,10 @@ export interface MenubarContext {
* @defaultValue false
*/
focused: boolean;
/**
* Current level of the menuitem.
*/
level: number;
}
/**

View File

@ -144,7 +144,8 @@ export default {
item: processedItem,
index,
active: this.isItemActive(processedItem),
focused: this.isItemFocused(processedItem)
focused: this.isItemFocused(processedItem),
level: this.level
}
});
},