@azrico/reactgrid 1.1.24 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -364,6 +364,7 @@ function ApplyColumnData(props) {
|
|
|
364
364
|
delete col.field;
|
|
365
365
|
delete col.key;
|
|
366
366
|
delete col.columnName;
|
|
367
|
+
if (col.flex && !col.defaultFlex) col.defaultFlex = col.flex;
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
370
|
/* -------------------------------------------------------------------------- */
|
package/package.json
CHANGED
package/src/views/DataGrid.tsx
CHANGED
|
@@ -502,6 +502,8 @@ function ApplyColumnData(props: any): ColumnDefinition[] {
|
|
|
502
502
|
delete col.field;
|
|
503
503
|
delete col.key;
|
|
504
504
|
delete col.columnName;
|
|
505
|
+
|
|
506
|
+
if (col.flex && !col.defaultFlex) col.defaultFlex = col.flex;
|
|
505
507
|
}
|
|
506
508
|
}
|
|
507
509
|
/* -------------------------------------------------------------------------- */
|