Skip to content

Commit

Permalink
feat: 优化grid编辑时只重绘当前编辑单元格,不再重绘整行数据
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYueKai committed Mar 9, 2017
1 parent d7c085a commit a0e6d84
Show file tree
Hide file tree
Showing 12 changed files with 8,250 additions and 32 deletions.
888 changes: 888 additions & 0 deletions dist/tinper-neoui-grid.css

Large diffs are not rendered by default.

7,309 changes: 7,309 additions & 0 deletions dist/tinper-neoui-grid.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/tinper-neoui-grid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions dist/tinper-neoui-grid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/gridComp.js
Expand Up @@ -220,7 +220,7 @@
// var oldInitEventFun_rowDrag= gridCompProto.initEventFun; // var oldInitEventFun_rowDrag= gridCompProto.initEventFun;
var oldInitGridEventFun_rowDrag = gridCompProto.initGridEventFun; var oldInitGridEventFun_rowDrag = gridCompProto.initGridEventFun;


Object.assign(gridCompProto, _re_gridCompTree.treeFunObj); Object.assign(gridCompProto, _re_gridCompRowDrag.rowDragFunObj);


gridCompProto.initGridEventFun = function () { gridCompProto.initGridEventFun = function () {
// 执行原有方法 // 执行原有方法
Expand Down
2 changes: 2 additions & 0 deletions lib/gridCompInit.js
Expand Up @@ -166,6 +166,8 @@
this.fixedWidth = 0; this.fixedWidth = 0;
if (this.options.maxHeaderLevel > 1) { if (this.options.maxHeaderLevel > 1) {
this.options.canSwap = false; this.options.canSwap = false;
this.options.canDrag = false;
this.options.columnMenu = false;
} }
// 获取缓存id // 获取缓存id
var url = window.location.href; var url = window.location.href;
Expand Down

0 comments on commit a0e6d84

Please sign in to comment.