Skip to content

Commit

Permalink
Refactor #4211 - For Menubar
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 3, 2023
1 parent 2e42f65 commit 4457763
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/lib/menubar/Menubar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export interface MenubarContext {
* @defaultValue false
*/
focused: boolean;
/**
* Current level of the menuitem.
*/
level: number;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion components/lib/menubar/MenubarSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export default {
item: processedItem,
index,
active: this.isItemActive(processedItem),
focused: this.isItemFocused(processedItem)
focused: this.isItemFocused(processedItem),
level: this.level
}
});
},
Expand Down

0 comments on commit 4457763

Please sign in to comment.