feat: replace context menu items splicing with implementation of context menu item sections
This commit is contained in:
parent
c9bbd10af1
commit
0f02142eb1
9 changed files with 85 additions and 50 deletions
|
@ -115,11 +115,16 @@ export interface ContextMenuItem {
|
|||
callback: (...args: any[]) => any;
|
||||
}
|
||||
|
||||
export interface ContextMenuSection {
|
||||
name?: string
|
||||
items: ContextMenuItem[]
|
||||
}
|
||||
|
||||
export interface ContextMenuInterface {
|
||||
show: boolean,
|
||||
pointerX: number,
|
||||
pointerY: number,
|
||||
items: ContextMenuItem[]
|
||||
sections: ContextMenuSection[]
|
||||
}
|
||||
|
||||
export interface NavbarItem {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue