You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I want to customize the email menu, but how can I get the right-click node object in the customized event? In addition, do I have other methods to get the top-level Vue object? The current $parent method is not very friendly.
itemEvents: {
contextmenu: function() {
let e = arguments[2];
console.log(arguments);
arguments[2].preventDefault();
let that =
arguments[0].$parent.$parent.$parent.$parent.$parent.$parent.$parent
.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent
.$parent;
that.left = 100;
that.left = e.clientX - 20;
that.top = e.clientY - 100;
that.contextMenuVisible = true;
// tree node operation
},
The text was updated successfully, but these errors were encountered:
Hello, I want to customize the email menu, but how can I get the right-click node object in the customized event? In addition, do I have other methods to get the top-level Vue object? The current $parent method is not very friendly.
The text was updated successfully, but these errors were encountered: