diff --git a/components/lib/menubar/Menubar.d.ts b/components/lib/menubar/Menubar.d.ts index 59bfe6d08..8e15cb1dc 100755 --- a/components/lib/menubar/Menubar.d.ts +++ b/components/lib/menubar/Menubar.d.ts @@ -169,6 +169,10 @@ export interface MenubarContext { * @defaultValue false */ focused: boolean; + /** + * Current level of the menuitem. + */ + level: number; } /** diff --git a/components/lib/menubar/MenubarSub.vue b/components/lib/menubar/MenubarSub.vue index f2a08d6d8..c660250de 100755 --- a/components/lib/menubar/MenubarSub.vue +++ b/components/lib/menubar/MenubarSub.vue @@ -144,7 +144,8 @@ export default { item: processedItem, index, active: this.isItemActive(processedItem), - focused: this.isItemFocused(processedItem) + focused: this.isItemFocused(processedItem), + level: this.level } }); },