优化菜单

This commit is contained in:
Harvey committed 2019-11-15 11:02:44 +08:00
1 parent 9e36a1ba44
commit b3c2452758
3 files changed
+8 -7

No files matched your search

+3 -3
View File
@@ -3006,10 +3006,10 @@
this.id = 0;
this.art = art;
this.art.on('ready', function () {
art.on('ready', function () {
_this.init();
});
this.art.on('blur', function () {
art.on('blur', function () {
_this.show = false;
});
}
@@ -3068,8 +3068,8 @@
}, {
key: "add",
value: function add(item, callback) {
var $contextmenu = this.art.template.$contextmenu;
this.id += 1;
var $contextmenu = this.art.template.$contextmenu;
return component(this.art, this, $contextmenu, item, callback, 'contextmenu');
}
}, {