trotl-table 1.0.85 → 1.0.86
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/Table.cjs.js +7 -1
- package/dist/Table.cjs.js.map +1 -1
- package/dist/Table.esm.js +7 -1
- package/dist/Table.esm.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
package/dist/Table.cjs.js
CHANGED
|
@@ -11271,6 +11271,9 @@ function TableInner({
|
|
|
11271
11271
|
const rowHeightGetter = ({
|
|
11272
11272
|
index
|
|
11273
11273
|
}) => tableDataFlat[index]?.type === "group" ? groupHeaderHeight : rowHeight;
|
|
11274
|
+
const tableHeight = tableDataFlat.reduce((height, _, index) => height + rowHeightGetter({
|
|
11275
|
+
index
|
|
11276
|
+
}), 0);
|
|
11274
11277
|
|
|
11275
11278
|
// Table-level drop target only when using external DnD context
|
|
11276
11279
|
const tableContainerRef = React.useRef(null);
|
|
@@ -11368,7 +11371,10 @@ function TableInner({
|
|
|
11368
11371
|
title: translate("action")
|
|
11369
11372
|
}, "\u2699\uFE0F") : translate("action")))), /*#__PURE__*/React.createElement("div", {
|
|
11370
11373
|
className: "main-table",
|
|
11371
|
-
ref: listRef
|
|
11374
|
+
ref: listRef,
|
|
11375
|
+
style: tableDataFlat.length > 0 ? {
|
|
11376
|
+
height: tableHeight
|
|
11377
|
+
} : undefined
|
|
11372
11378
|
}, tableDataFlat.length === 0 && !loadingTimeoutReached ? /*#__PURE__*/React.createElement(DotsLoading.default, null) : tableDataFlat.length === 0 && loadingTimeoutReached ? /*#__PURE__*/React.createElement("div", {
|
|
11373
11379
|
className: "table-empty",
|
|
11374
11380
|
style: {
|