@ehfuse/mui-virtual-data-table 1.0.5 → 1.0.6
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 +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1169,11 +1169,11 @@ showScrollbar = true, }, ref) => {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
};
|
|
1171
1171
|
}, []);
|
|
1172
|
-
return (jsxs("div", { className: `overlay-scrollbar-wrapper ${className}`, style: Object.assign({ display: "flex", flexDirection: "column", position: "relative", minHeight: 0, height: "100%", flex: "1 1 0%" }, style), children: [jsx("div", { ref: containerRef, className: "overlay-scrollbar-container", tabIndex: -1, onMouseDown: handleDragScrollStart, style: Object.assign({
|
|
1172
|
+
return (jsxs("div", { className: `overlay-scrollbar-wrapper ${className}`, style: Object.assign({ display: "flex", flexDirection: "column", position: "relative", minHeight: 0, height: "100%", flex: "1 1 0%" }, style), children: [jsx("div", { ref: containerRef, className: "overlay-scrollbar-container", tabIndex: -1, onMouseDown: handleDragScrollStart, style: Object.assign({ display: "flex", width: "100%", flex: "1 1 auto", minHeight: 0, overflow: "auto",
|
|
1173
1173
|
// 브라우저 기본 스크롤바만 숨기기
|
|
1174
1174
|
scrollbarWidth: "none", msOverflowStyle: "none",
|
|
1175
1175
|
// 키보드 포커스 스타일 (접근성)
|
|
1176
|
-
outline: "none", userSelect: isDragScrolling ? "none" : "auto" }, containerStyle), children: jsx("div", { ref: contentRef, className: "overlay-scrollbar-content", style: Object.assign({ minHeight: 0, display: "flex", flexDirection: "column" }, contentStyle), children: children }) }), showScrollbar && hasScrollableContent && (jsxs("div", { ref: scrollbarRef, className: "overlay-scrollbar-track", onMouseEnter: () => {
|
|
1176
|
+
outline: "none", userSelect: isDragScrolling ? "none" : "auto" }, containerStyle), children: jsx("div", { ref: contentRef, className: "overlay-scrollbar-content", style: Object.assign({ flex: "1 1 0%", minHeight: 0, display: "flex", flexDirection: "column" }, contentStyle), children: children }) }), showScrollbar && hasScrollableContent && (jsxs("div", { ref: scrollbarRef, className: "overlay-scrollbar-track", onMouseEnter: () => {
|
|
1177
1177
|
clearHideTimer();
|
|
1178
1178
|
setScrollbarVisible(true);
|
|
1179
1179
|
}, onMouseLeave: () => {
|
|
@@ -1311,7 +1311,7 @@ function VirtualDataTableComponent({ data, loading = false, columns, onRowClick,
|
|
|
1311
1311
|
// 각 테이블 인스턴스별로 Scroller 컴포넌트 생성 (scrollbars, paddingX를 초기값으로 고정)
|
|
1312
1312
|
const VirtuosoScroller = useMemo(() => forwardRef((props, ref) => {
|
|
1313
1313
|
const scrollContainerRef = useRef(null);
|
|
1314
|
-
return (jsx(OverlayScrollbar, { track: OVERLAY_SCROLLBAR_TRACK_CONFIG,
|
|
1314
|
+
return (jsx(OverlayScrollbar, { track: OVERLAY_SCROLLBAR_TRACK_CONFIG, ...scrollbars, children: jsx(TableContainer, { component: Box, ...props, ref: (node) => {
|
|
1315
1315
|
scrollContainerRef.current =
|
|
1316
1316
|
node;
|
|
1317
1317
|
if (typeof ref === "function") {
|