Browse Source

解决 els-bug, 通过带入默认属性:

syncRowHeight: false
enableLocking: true
luoyifan 3 years ago
parent
commit
6955ad03ab
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/Defaults.ts
  2. 1 1
      src/controls/grid.js

+ 1 - 0
src/Defaults.ts

@@ -144,6 +144,7 @@ export const grid = {
     remoteSort: false,
     remoteSort: false,
     remoteFilter: false,
     remoteFilter: false,
     enableLocking: true,
     enableLocking: true,
+    syncRowHeight: false,
     enableColumnMove: true,
     enableColumnMove: true,
     enableColumnHide: true,
     enableColumnHide: true,
     enableColumnResize: true,
     enableColumnResize: true,

+ 1 - 1
src/controls/grid.js

@@ -60,7 +60,7 @@ export default function () {
                 // 强制性属性 bug.
                 // 强制性属性 bug.
                 // lock 属性会造成 Cannot read properties of undefined (reading 'els')
                 // lock 属性会造成 Cannot read properties of undefined (reading 'els')
                 // enableLocking: false,
                 // enableLocking: false,
-                syncRowHeight: false,
+                // syncRowHeight: false,
 
 
             }, baseConfig(config, 'row-item'), config, grid)
             }, baseConfig(config, 'row-item'), config, grid)