luoyifan 3 anos atrás
pai
commit
43bf683596
2 arquivos alterados com 1 adições e 31 exclusões
  1. 0 30
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 0 - 30
dist/yvan-ext.js

@@ -97045,36 +97045,6 @@ define(['exports'], function (exports) { 'use strict';
                             jquery(sender.inputEl.dom).on('click', function (e) {
                                 sender.fireEvent('click', _this, e);
                             });
-                            jquery(sender.inputEl.dom).on('keydown', function (e) {
-                                var _a, _b, _c, _d, _e;
-                                // 表格内编辑器,按上下键时,可以切换到下一行/上一行 进入编辑
-                                if (e.code === "ArrowDown" || e.code === 'ArrowUp') {
-                                    if (((_a = sender.ownerCt) === null || _a === void 0 ? void 0 : _a.xtype) === 'celleditor') {
-                                        var grid = sender.ownerCt.up('grid');
-                                        var editingPlugin = grid.editingPlugin || grid.ownerGrid.editingPlugin;
-                                        if (editingPlugin) {
-                                            var rowIdx = (_c = (_b = editingPlugin === null || editingPlugin === void 0 ? void 0 : editingPlugin.activeEditor) === null || _b === void 0 ? void 0 : _b.context) === null || _c === void 0 ? void 0 : _c.rowIdx;
-                                            var colIdx = (_e = (_d = editingPlugin === null || editingPlugin === void 0 ? void 0 : editingPlugin.activeEditor) === null || _d === void 0 ? void 0 : _d.context) === null || _e === void 0 ? void 0 : _e.colIdx;
-                                            if (typeof rowIdx !== 'undefined' && typeof colIdx !== 'undefined') {
-                                                // editingPlugin
-                                                var targetRecord = void 0;
-                                                if (e.code === 'ArrowDown') {
-                                                    targetRecord = grid.store.data.getAt(rowIdx + 1);
-                                                }
-                                                else {
-                                                    targetRecord = grid.store.data.getAt(rowIdx - 1);
-                                                }
-                                                if (targetRecord) {
-                                                    grid.setSelection([targetRecord]);
-                                                    editingPlugin.startEdit(targetRecord, colIdx);
-                                                }
-                                                e.stopPropagation();
-                                                e.preventDefault();
-                                            }
-                                        }
-                                    }
-                                }
-                            });
                         }
                     }
                 });

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
dist/yvan-ext.js.map