Refactor #4190 - For PanelMenu
parent
06acfdf264
commit
a7f0366b6a
|
@ -134,6 +134,10 @@ export interface PanelMenuState {
|
|||
* Defines current options in PanelMenu component.
|
||||
*/
|
||||
export interface PanelMenuContext {
|
||||
/**
|
||||
* Current menuitem
|
||||
*/
|
||||
item: any;
|
||||
/**
|
||||
* Index of the menuitem.
|
||||
*/
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue