es-grid-template 1.8.46 → 1.8.47
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.
|
@@ -173,10 +173,7 @@ const TableBodyCell = props => {
|
|
|
173
173
|
const tooltipContent = isOpenTooltip === false ? '' : columnMeta?.tooltipDescription ? typeof columnMeta.tooltipDescription === 'function' ? columnMeta.tooltipDescription({
|
|
174
174
|
value: cell.getValue(),
|
|
175
175
|
record
|
|
176
|
-
}) : columnMeta.tooltipDescription : typeof columnMeta.template !== 'function' ? columnMeta.template : cell.getValue();
|
|
177
|
-
// : record[columnMeta.field]
|
|
178
|
-
// : flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
179
|
-
|
|
176
|
+
}) : columnMeta.tooltipDescription : columnMeta.template && typeof columnMeta.template !== 'function' ? columnMeta.template : cell.getValue();
|
|
180
177
|
const allRows = table.getRowModel().flatRows;
|
|
181
178
|
const rowNumber = allRows.findIndex(it => it.id === cell.row.id);
|
|
182
179
|
const colIndex = cell.column.getIndex();
|
|
@@ -180,10 +180,7 @@ const TableBodyCell = props => {
|
|
|
180
180
|
const tooltipContent = isOpenTooltip === false ? '' : columnMeta?.tooltipDescription ? typeof columnMeta.tooltipDescription === 'function' ? columnMeta.tooltipDescription({
|
|
181
181
|
value: cell.getValue(),
|
|
182
182
|
record
|
|
183
|
-
}) : columnMeta.tooltipDescription : typeof columnMeta.template !== 'function' ? columnMeta.template : cell.getValue();
|
|
184
|
-
// : record[columnMeta.field]
|
|
185
|
-
// : flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
186
|
-
|
|
183
|
+
}) : columnMeta.tooltipDescription : columnMeta.template && typeof columnMeta.template !== 'function' ? columnMeta.template : cell.getValue();
|
|
187
184
|
const allRows = table.getRowModel().flatRows;
|
|
188
185
|
const rowNumber = allRows.findIndex(it => it.id === cell.row.id);
|
|
189
186
|
const colIndex = cell.column.getIndex();
|