@pdg/react-table 1.0.31 → 1.0.32
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.
- package/dist/index.esm.js +9 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8615,17 +8615,15 @@ var TableBodyCell = function (_a) {
|
|
|
8615
8615
|
data = dayjs(data, column.dateFormat).format('YYYY-MM-DD HH:mm:ss');
|
|
8616
8616
|
}
|
|
8617
8617
|
break;
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
}
|
|
8628
|
-
break;
|
|
8618
|
+
}
|
|
8619
|
+
if (column.type !== 'img') {
|
|
8620
|
+
var tooltip = void 0;
|
|
8621
|
+
if (column.onGetTooltip) {
|
|
8622
|
+
tooltip = column.onGetTooltip(item, index);
|
|
8623
|
+
}
|
|
8624
|
+
if (tooltip) {
|
|
8625
|
+
data = (React__default.createElement(Tooltip, __assign$1({ className: 'TableBodyCell-tooltip', title: tooltip }, column.tooltipProps), React__default.isValidElement(data) ? (data.type === React__default.Fragment ? (React__default.createElement("span", null, data)) : (data)) : (React__default.createElement("span", null, data))));
|
|
8626
|
+
}
|
|
8629
8627
|
}
|
|
8630
8628
|
return data;
|
|
8631
8629
|
}, [column, item, index, menuOpen, checked, checkDisabled, buttonsBoxJustifyContent, onCheckChange]);
|