@pinnacle0/web-ui 0.3.50 → 0.3.51
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.
|
@@ -49,8 +49,8 @@ export var VirtualTable = Object.assign(function (_a) {
|
|
|
49
49
|
var isScrollable = totalSize > scrollY;
|
|
50
50
|
var _e = useLayout({ headersRef: headersRef, scrollContentRef: scrollContentRef, isScrollable: isScrollable, columns: transformedColumns }), scrollBarSize = _e.scrollBarSize, stickyPosition = _e.stickyPosition, columnWidths = _e.columnWidths, isScrollToEdge = _e.isScrollToEdge, isScrollToLeft = _e.isScrollToLeft, isScrollToRight = _e.isScrollToRight;
|
|
51
51
|
var isHorizontalScrollable = React.useMemo(function () { return (scrollContentRef.current ? columnWidths.reduce(function (acc, curr) { return acc + curr; }, 0) > scrollContentRef.current.offsetWidth : false); }, [columnWidths]);
|
|
52
|
-
var tableHeight = scrollY + headerHeight + (isHorizontalScrollable ?
|
|
53
|
-
var tableBodyHeight = scrollY + (isHorizontalScrollable ?
|
|
52
|
+
var tableHeight = scrollY + headerHeight + (isHorizontalScrollable ? 16 : 0);
|
|
53
|
+
var tableBodyHeight = scrollY + (isHorizontalScrollable ? 16 : 0);
|
|
54
54
|
var emptyElement = emptyPlaceholder || "暂无数据";
|
|
55
55
|
var lastShownColumnIndex = React.useMemo(function () { return transformedColumns.length - 1 - __spreadArray([], __read(transformedColumns), false).reverse().findIndex(function (_) { return _.display !== "hidden"; }); }, [transformedColumns]);
|
|
56
56
|
// handle the edge position & shadow of the fixed columns
|