luoyifan 3 năm trước cách đây
mục cha
commit
21dea4d217
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      src/controls/grid.js

+ 5 - 5
src/controls/grid.js

@@ -209,11 +209,11 @@ export default function () {
                     }
                 },
                 itemcontextmenu(view, rec, node, index, e) {
-                    // if (this.contextMenu) {
-                    //     e.stopEvent();
-                    //     this.contextMenu.show().setLocalXY(e.getXY());
-                    //     return false;
-                    // }
+                    if (this.contextMenu) {
+                        e.stopEvent();
+                        this.contextMenu.show().setLocalXY(e.getXY());
+                        return false;
+                    }
                 },
                 destory() {
                 },