@nokecy/qc-ui 1.0.0 → 1.0.2
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.
|
@@ -337,10 +337,10 @@ function AgGridPlus(props) {
|
|
|
337
337
|
var columnDefs = !columnProps ? props.columnDefs ? props.columnDefs : [] : columnProps;
|
|
338
338
|
columnDefs = columnDefs.map(function (col) {
|
|
339
339
|
var dataType = getDataType(data, col.field);
|
|
340
|
-
if (typeof col.cellRenderer == "string") {
|
|
340
|
+
if (col.type || typeof col.cellRenderer == "string") {
|
|
341
341
|
return _objectSpread({}, col);
|
|
342
342
|
}
|
|
343
|
-
if (col.
|
|
343
|
+
if (col.cellRenderer) {
|
|
344
344
|
return _objectSpread(_objectSpread({}, col), {}, {
|
|
345
345
|
customCellRenderer: col.cellRenderer,
|
|
346
346
|
cellRenderer: cellRenderer
|
|
@@ -328,10 +328,10 @@ function AgGridPlus(props) {
|
|
|
328
328
|
var columnDefs = !columnProps ? props.columnDefs ? props.columnDefs : [] : columnProps;
|
|
329
329
|
columnDefs = columnDefs.map(function (col) {
|
|
330
330
|
var dataType = getDataType(data, col.field);
|
|
331
|
-
if (typeof col.cellRenderer == "string") {
|
|
331
|
+
if (col.type || typeof col.cellRenderer == "string") {
|
|
332
332
|
return _objectSpread({}, col);
|
|
333
333
|
}
|
|
334
|
-
if (col.
|
|
334
|
+
if (col.cellRenderer) {
|
|
335
335
|
return _objectSpread(_objectSpread({}, col), {}, {
|
|
336
336
|
customCellRenderer: col.cellRenderer,
|
|
337
337
|
cellRenderer: cellRenderer
|