context menu now positions
This commit is contained in:
parent
b19834656a
commit
c72fe6b7e1
4 changed files with 72 additions and 39 deletions
|
@ -294,6 +294,7 @@ const app = new Vue({
|
|||
},
|
||||
menuPanel: {
|
||||
visible: false,
|
||||
event: null,
|
||||
content: {
|
||||
name: "",
|
||||
items: {},
|
||||
|
@ -338,11 +339,14 @@ const app = new Vue({
|
|||
}
|
||||
app.routeView(item)
|
||||
},
|
||||
async showMenuPanel(data) {
|
||||
async showMenuPanel(data, event) {
|
||||
app.menuPanel.visible = true;
|
||||
app.menuPanel.content.name = data.name ?? "";
|
||||
app.menuPanel.content.items = data.items ?? {};
|
||||
app.menuPanel.content.headerItems = data.headerItems ?? {};
|
||||
if(event) {
|
||||
app.menuPanel.event = event;
|
||||
}
|
||||
},
|
||||
async getSvgIcon(url) {
|
||||
let response = await fetch(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue