luoyifan hace 3 años
padre
commit
21dea4d217
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  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() {
                 },