Explorar o código

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

syncRowHeight: false
enableLocking: true
luoyifan %!s(int64=3) %!d(string=hai) anos
pai
achega
6955ad03ab
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  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,
     remoteFilter: false,
     enableLocking: true,
+    syncRowHeight: false,
     enableColumnMove: true,
     enableColumnHide: true,
     enableColumnResize: true,

+ 1 - 1
src/controls/grid.js

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