ehscan-react-table 0.0.10 → 0.0.11
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/elements/Table.js +4 -0
- package/package.json +1 -1
package/dist/elements/Table.js
CHANGED
|
@@ -39,6 +39,9 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
|
|
|
39
39
|
window.addEventListener("resize", calculateHeight);
|
|
40
40
|
return () => window.removeEventListener("resize", calculateHeight);
|
|
41
41
|
}, []);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
console.log(wrapperBottom);
|
|
44
|
+
}, [wrapperBottom]);
|
|
42
45
|
const checkHead = (entry) => {
|
|
43
46
|
if (entry === undefined)
|
|
44
47
|
return;
|
|
@@ -102,6 +105,7 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
|
|
|
102
105
|
};
|
|
103
106
|
const HeadCols = () => {
|
|
104
107
|
return (_jsxs(_Fragment, { children: [columns.map((col, i) => {
|
|
108
|
+
console.log(col);
|
|
105
109
|
const { tag, type } = col;
|
|
106
110
|
if (type === "checkbox") {
|
|
107
111
|
return (_jsx("th", { className: styles.thcheckhead, style: { "--custom-width": `32px` }, children: _jsx(TableCellSelectHeadCol, { checkHead: checkHead, checkAll: checkAll }) }, `checkbox-${tag !== null && tag !== void 0 ? tag : i}`));
|