mirror of
https://github.com/wu736139669/ASHEBShop-h5.git
synced 2026-08-06 06:13:58 +00:00
21 lines
548 B
JavaScript
21 lines
548 B
JavaScript
|
|
|
|
/**
|
|
* Default cell renderer that displays an attribute as a simple string
|
|
* You should override the column's cellRenderer if your data is some other type of object.
|
|
*/
|
|
export default function defaultCellRenderer(_ref) {
|
|
var cellData = _ref.cellData,
|
|
columnData = _ref.columnData,
|
|
columnIndex = _ref.columnIndex,
|
|
dataKey = _ref.dataKey,
|
|
isScrolling = _ref.isScrolling,
|
|
rowData = _ref.rowData,
|
|
rowIndex = _ref.rowIndex;
|
|
|
|
if (cellData == null) {
|
|
return '';
|
|
} else {
|
|
return String(cellData);
|
|
}
|
|
} |