@nokecy/qc-ui 0.9.9 → 1.0.0
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.
|
@@ -327,7 +327,7 @@ function AgGridPlus(props) {
|
|
|
327
327
|
return value;
|
|
328
328
|
}
|
|
329
329
|
//@ts-ignore
|
|
330
|
-
return
|
|
330
|
+
return colDef.customCellRenderer(params);
|
|
331
331
|
};
|
|
332
332
|
var getTableColumns = function getTableColumns(rowDataList) {
|
|
333
333
|
var data = rowDataList.length > 0 ? rowDataList[0] : {};
|
|
@@ -337,6 +337,9 @@ 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") {
|
|
341
|
+
return _objectSpread({}, col);
|
|
342
|
+
}
|
|
340
343
|
if (col.type || col.cellRenderer) {
|
|
341
344
|
return _objectSpread(_objectSpread({}, col), {}, {
|
|
342
345
|
customCellRenderer: col.cellRenderer,
|
|
@@ -318,7 +318,7 @@ function AgGridPlus(props) {
|
|
|
318
318
|
return value;
|
|
319
319
|
}
|
|
320
320
|
//@ts-ignore
|
|
321
|
-
return
|
|
321
|
+
return colDef.customCellRenderer(params);
|
|
322
322
|
};
|
|
323
323
|
var getTableColumns = function getTableColumns(rowDataList) {
|
|
324
324
|
var data = rowDataList.length > 0 ? rowDataList[0] : {};
|
|
@@ -328,6 +328,9 @@ 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") {
|
|
332
|
+
return _objectSpread({}, col);
|
|
333
|
+
}
|
|
331
334
|
if (col.type || col.cellRenderer) {
|
|
332
335
|
return _objectSpread(_objectSpread({}, col), {}, {
|
|
333
336
|
customCellRenderer: col.cellRenderer,
|