shineout 3.7.0-beta.1 → 3.7.0-beta.3
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/cjs/index.js +1 -1
- package/cjs/tests/utils.d.ts +2 -2
- package/dist/shineout.js +54 -148
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/tests/utils.d.ts +2 -2
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.7.0-beta.
|
|
517
|
+
version: '3.7.0-beta.3'
|
|
518
518
|
};
|
package/cjs/tests/utils.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import React from 'react';
|
|
|
2
2
|
export declare function classTest(element: Element, className: string, bool?: boolean): void;
|
|
3
3
|
export declare function snapshotTest(component: JSX.Element, testName?: string): void;
|
|
4
4
|
export declare function snapshotTestByClick(component: JSX.Element, testName: string | undefined, wrapper: string): void;
|
|
5
|
-
export declare function attributesTest(element: Element, attr: string, content: string): void;
|
|
5
|
+
export declare function attributesTest(element: Element, attr: string, content: string | null): void;
|
|
6
6
|
export declare function hasAttributesTest(element: Element, attr: string, bool?: boolean): void;
|
|
7
7
|
export declare function componentsClassTest(components: NodeListOf<Element>, bool: boolean, componentClassName: string, excludes?: string[]): void;
|
|
8
8
|
export declare function textContentTest(element: Element, text: string | null | undefined): void;
|
|
9
9
|
export declare function classContentTest(element: Element, name: string, bool?: boolean): void;
|
|
10
|
-
export declare function styleTest(element: Element, style: string): void;
|
|
10
|
+
export declare function styleTest(element: Element, style: string | null): void;
|
|
11
11
|
export declare function styleContainTest(element: Element, styleObject: object): void;
|
|
12
12
|
export declare function styleContentTest(element: Element, name: string, bool?: boolean): void;
|
|
13
13
|
export interface StyleProps {
|
package/dist/shineout.js
CHANGED
|
@@ -12142,7 +12142,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12142
12142
|
};
|
|
12143
12143
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12144
12144
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12145
|
-
/* harmony default export */ var version = ('3.7.0-beta.
|
|
12145
|
+
/* harmony default export */ var version = ('3.7.0-beta.3');
|
|
12146
12146
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12147
12147
|
|
|
12148
12148
|
|
|
@@ -25578,6 +25578,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25578
25578
|
borderBottom: "1px solid ".concat(src.tableCellBorderColor),
|
|
25579
25579
|
boxSizing: 'border-box',
|
|
25580
25580
|
lineHeight: src.lineHeightDynamic,
|
|
25581
|
+
zIndex: fixedIndex - 1,
|
|
25581
25582
|
'&$cellFixedLeft, &$cellFixedRight': {
|
|
25582
25583
|
zIndex: fixedIndex
|
|
25583
25584
|
},
|
|
@@ -25704,7 +25705,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25704
25705
|
},
|
|
25705
25706
|
headWrapper: {
|
|
25706
25707
|
flex: '0 0 auto',
|
|
25707
|
-
overflow: 'hidden',
|
|
25708
|
+
// overflow: 'hidden',
|
|
25708
25709
|
boxSizing: 'border-box',
|
|
25709
25710
|
background: src.tableTheadBackgroundColor,
|
|
25710
25711
|
'$sticky > &': {
|
|
@@ -25737,7 +25738,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25737
25738
|
},
|
|
25738
25739
|
footWrapper: {
|
|
25739
25740
|
flex: '0 0 auto',
|
|
25740
|
-
overflow: 'hidden',
|
|
25741
|
+
// overflow: 'hidden',
|
|
25741
25742
|
boxSizing: 'border-box',
|
|
25742
25743
|
background: src.tableTfootBackgroundColor
|
|
25743
25744
|
},
|
|
@@ -38724,7 +38725,6 @@ var useResize = function useResize(props) {
|
|
|
38724
38725
|
|
|
38725
38726
|
|
|
38726
38727
|
|
|
38727
|
-
|
|
38728
38728
|
var Scroll = function Scroll(props) {
|
|
38729
38729
|
var containerRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
38730
38730
|
var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
@@ -38756,13 +38756,13 @@ var Scroll = function Scroll(props) {
|
|
|
38756
38756
|
width: '100%',
|
|
38757
38757
|
overflow: 'auto'
|
|
38758
38758
|
};
|
|
38759
|
-
var containerStyle =
|
|
38759
|
+
var containerStyle = {
|
|
38760
38760
|
height: '100%',
|
|
38761
38761
|
width: '100%',
|
|
38762
38762
|
display: 'inline-flex',
|
|
38763
|
-
|
|
38764
|
-
|
|
38765
|
-
}
|
|
38763
|
+
position: 'sticky',
|
|
38764
|
+
top: 0
|
|
38765
|
+
};
|
|
38766
38766
|
|
|
38767
38767
|
// 当滚动容器的高度为 0 时,paddingTop 为 0,避免滚动条抖动现象
|
|
38768
38768
|
var paddingTop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
@@ -60602,7 +60602,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
60602
60602
|
width: tableWidth,
|
|
60603
60603
|
shouldLastColAuto: props.columnResizable && !adjust,
|
|
60604
60604
|
scrollWidth: scrollWidth,
|
|
60605
|
-
maxScrollLeft: scrollWidth - context.clientWidth,
|
|
60605
|
+
// maxScrollLeft: scrollWidth - context.clientWidth,
|
|
60606
60606
|
resizeFlag: resizeFlag
|
|
60607
60607
|
};
|
|
60608
60608
|
};
|
|
@@ -60871,26 +60871,21 @@ function getMaxRowSpanLength(input) {
|
|
|
60871
60871
|
var useTableVirtual = function useTableVirtual(props) {
|
|
60872
60872
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
60873
60873
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
60874
|
-
|
|
60875
|
-
|
|
60876
|
-
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
60874
|
+
innerTop = _useState2[0],
|
|
60875
|
+
setTop = _useState2[1];
|
|
60876
|
+
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.data.length * props.rowHeight),
|
|
60877
60877
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
60878
|
-
|
|
60879
|
-
|
|
60880
|
-
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
60878
|
+
scrollHeight = _useState4[0],
|
|
60879
|
+
setHeight = _useState4[1];
|
|
60880
|
+
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
60881
60881
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
60882
|
-
|
|
60883
|
-
|
|
60882
|
+
startIndex = _useState6[0],
|
|
60883
|
+
setStartIndex = _useState6[1];
|
|
60884
60884
|
var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
60885
60885
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
60886
|
-
|
|
60887
|
-
|
|
60888
|
-
var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
60889
|
-
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
60890
|
-
offsetY = _useState10[0],
|
|
60891
|
-
setOffsetY = _useState10[1];
|
|
60886
|
+
offsetY = _useState8[0],
|
|
60887
|
+
setOffsetY = _useState8[1];
|
|
60892
60888
|
var rowsInView = props.rowsInView === 0 ? props.data.length : props.rowsInView;
|
|
60893
|
-
var sleft = props.scrollLeft !== undefined ? props.scrollLeft : innerLeft;
|
|
60894
60889
|
var rowSpanInfo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
60895
60890
|
var rowSpanColumns = props.columns.filter(function (col) {
|
|
60896
60891
|
return typeof col.rowSpan === 'function';
|
|
@@ -60963,18 +60958,11 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
60963
60958
|
}),
|
|
60964
60959
|
context = _useRef.current;
|
|
60965
60960
|
var getTranslate = usePersistFn(function (left, top) {
|
|
60966
|
-
var l = left === undefined ? sleft : left;
|
|
60967
60961
|
var t = top === undefined ? innerTop + offsetY : top;
|
|
60968
60962
|
if (t < 0) {
|
|
60969
60963
|
t = 0;
|
|
60970
60964
|
}
|
|
60971
|
-
|
|
60972
|
-
l = 0;
|
|
60973
|
-
}
|
|
60974
|
-
if (props.isRtl && l > 0) {
|
|
60975
|
-
l = 0;
|
|
60976
|
-
}
|
|
60977
|
-
return "translate3d(".concat(0 - l, "px, ").concat(0 - t, "px, 0)");
|
|
60965
|
+
return "translate3d(0, ".concat(0 - t, "px, 0)");
|
|
60978
60966
|
});
|
|
60979
60967
|
var getContentHeight = function getContentHeight(index) {
|
|
60980
60968
|
if (props.disabled) return 0;
|
|
@@ -61076,12 +61064,10 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
61076
61064
|
setHeight(sumHeight);
|
|
61077
61065
|
});
|
|
61078
61066
|
var handleScroll = function handleScroll(info) {
|
|
61079
|
-
var
|
|
61080
|
-
height = info.height,
|
|
61067
|
+
var height = info.height,
|
|
61081
61068
|
y = info.y,
|
|
61082
61069
|
fromDrag = info.fromDrag;
|
|
61083
61070
|
var scrollTop = info.scrollTop;
|
|
61084
|
-
setLeft(scrollLeft);
|
|
61085
61071
|
if (props.disabled) {
|
|
61086
61072
|
setTop(scrollTop);
|
|
61087
61073
|
return;
|
|
@@ -61138,7 +61124,6 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
61138
61124
|
var max = scrollEl.scrollWidth - scrollEl.clientWidth;
|
|
61139
61125
|
var left = Math.min(targetLeft, max);
|
|
61140
61126
|
if (left === scrollEl.scrollLeft) return;
|
|
61141
|
-
setLeft(left);
|
|
61142
61127
|
scrollEl.scrollLeft = left;
|
|
61143
61128
|
});
|
|
61144
61129
|
var scrollColumnIntoView = usePersistFn(function (colKey) {
|
|
@@ -61157,6 +61142,11 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
61157
61142
|
}
|
|
61158
61143
|
scrollColumnByLeft(left);
|
|
61159
61144
|
});
|
|
61145
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
61146
|
+
if (props.scrollLeft) {
|
|
61147
|
+
scrollColumnByLeft(props.scrollLeft);
|
|
61148
|
+
}
|
|
61149
|
+
}, [props.scrollLeft]);
|
|
61160
61150
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
61161
61151
|
var scrollRefHeight = props.scrollRef.current ? props.scrollRef.current.clientHeight : 0;
|
|
61162
61152
|
var tableRefHeight = props.innerRef.current ? props.innerRef.current.clientHeight : 0;
|
|
@@ -61216,7 +61206,6 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
61216
61206
|
return {
|
|
61217
61207
|
scrollHeight: scrollHeight,
|
|
61218
61208
|
startIndex: startIndex,
|
|
61219
|
-
innerLeft: sleft,
|
|
61220
61209
|
innerTop: innerTop + offsetY,
|
|
61221
61210
|
data: renderData,
|
|
61222
61211
|
handleScroll: handleScroll,
|
|
@@ -61976,16 +61965,9 @@ var thead_toNum = toNum;
|
|
|
61976
61965
|
};
|
|
61977
61966
|
var getFixedStyle = function getFixedStyle(fixed, index, colSpan, level) {
|
|
61978
61967
|
if (fixed === 'left') {
|
|
61979
|
-
if (props.fixLeftNum !== undefined) {
|
|
61980
|
-
// 这是virtual table场景下的th样式
|
|
61981
|
-
return {
|
|
61982
|
-
transform: "translate3d(".concat(props.fixLeftNum, "px, 0, 0)")
|
|
61983
|
-
};
|
|
61984
|
-
}
|
|
61985
61968
|
var left = colgroup.slice(0, index).reduce(function (a, b) {
|
|
61986
61969
|
return thead_toNum(a) + thead_toNum(b);
|
|
61987
61970
|
}, 0);
|
|
61988
|
-
// 这是base table场景下的th样式
|
|
61989
61971
|
return {
|
|
61990
61972
|
left: left,
|
|
61991
61973
|
top: context.trHeights[level - 1] || 0,
|
|
@@ -61993,24 +61975,15 @@ var thead_toNum = toNum;
|
|
|
61993
61975
|
};
|
|
61994
61976
|
}
|
|
61995
61977
|
if (fixed === 'right') {
|
|
61996
|
-
if (props.fixRightNum !== undefined) {
|
|
61997
|
-
// 这是virtual table场景下的th样式
|
|
61998
|
-
return {
|
|
61999
|
-
transform: "translate3d(".concat(0 - props.fixRightNum, "px, 0, 0)")
|
|
62000
|
-
};
|
|
62001
|
-
}
|
|
62002
61978
|
var right = colgroup.slice(index + colSpan).reduce(function (a, b) {
|
|
62003
61979
|
return thead_toNum(a) + thead_toNum(b);
|
|
62004
61980
|
}, 0);
|
|
62005
|
-
// 这是base table场景下的th样式
|
|
62006
61981
|
return {
|
|
62007
61982
|
right: right,
|
|
62008
61983
|
top: context.trHeights[level - 1] || 0,
|
|
62009
61984
|
position: 'sticky'
|
|
62010
61985
|
};
|
|
62011
61986
|
}
|
|
62012
|
-
|
|
62013
|
-
// 这是base table场景下的非fixed th样式
|
|
62014
61987
|
return {
|
|
62015
61988
|
top: context.trHeights[level - 1] || 0,
|
|
62016
61989
|
position: 'sticky'
|
|
@@ -62369,11 +62342,6 @@ var Tr = function Tr(props) {
|
|
|
62369
62342
|
var getFixedStyle = function getFixedStyle(fixed, index, colSpan) {
|
|
62370
62343
|
if (!props.isScrollX) return;
|
|
62371
62344
|
if (fixed === 'left') {
|
|
62372
|
-
if (props.fixLeftNum !== undefined) {
|
|
62373
|
-
return {
|
|
62374
|
-
transform: "translate3d(".concat(props.fixLeftNum, "px, 0, 0)")
|
|
62375
|
-
};
|
|
62376
|
-
}
|
|
62377
62345
|
var left = props.colgroup.slice(0, index).reduce(function (a, b) {
|
|
62378
62346
|
return tr_toNum(a) + tr_toNum(b);
|
|
62379
62347
|
}, 0);
|
|
@@ -62383,11 +62351,6 @@ var Tr = function Tr(props) {
|
|
|
62383
62351
|
};
|
|
62384
62352
|
}
|
|
62385
62353
|
if (fixed === 'right') {
|
|
62386
|
-
if (props.fixRightNum !== undefined) {
|
|
62387
|
-
return {
|
|
62388
|
-
transform: "translate3d(".concat(0 - props.fixRightNum, "px, 0, 0)")
|
|
62389
|
-
};
|
|
62390
|
-
}
|
|
62391
62354
|
var right = props.colgroup.slice(index + colSpan).reduce(function (a, b) {
|
|
62392
62355
|
return tr_toNum(a) + tr_toNum(b);
|
|
62393
62356
|
}, 0);
|
|
@@ -62775,8 +62738,6 @@ var Tr = function Tr(props) {
|
|
|
62775
62738
|
isEmptyTree: props.isEmptyTree,
|
|
62776
62739
|
treeColumnsName: props.treeColumnsName,
|
|
62777
62740
|
setRowHeight: props.setRowHeight,
|
|
62778
|
-
fixLeftNum: props.fixLeftNum,
|
|
62779
|
-
fixRightNum: props.fixRightNum,
|
|
62780
62741
|
striped: props.striped,
|
|
62781
62742
|
radio: props.radio,
|
|
62782
62743
|
isCellHover: isCellHover,
|
|
@@ -62817,11 +62778,6 @@ var tfoot_isArray = isArray,
|
|
|
62817
62778
|
var getFixedStyle = function getFixedStyle(fixed, index, colSpan) {
|
|
62818
62779
|
var colgroup = props.colgroup;
|
|
62819
62780
|
if (fixed === 'left') {
|
|
62820
|
-
if (props.fixLeftNum !== undefined) {
|
|
62821
|
-
return {
|
|
62822
|
-
transform: "translate3d(".concat(props.fixLeftNum, "px, 0, 0)")
|
|
62823
|
-
};
|
|
62824
|
-
}
|
|
62825
62781
|
var left = colgroup.slice(0, index).reduce(function (a, b) {
|
|
62826
62782
|
return tfoot_toNum(a) + tfoot_toNum(b);
|
|
62827
62783
|
}, 0);
|
|
@@ -62831,11 +62787,6 @@ var tfoot_isArray = isArray,
|
|
|
62831
62787
|
};
|
|
62832
62788
|
}
|
|
62833
62789
|
if (fixed === 'right') {
|
|
62834
|
-
if (props.fixRightNum !== undefined) {
|
|
62835
|
-
return {
|
|
62836
|
-
transform: "translate3d(-".concat(props.fixRightNum, "px, 0, 0)")
|
|
62837
|
-
};
|
|
62838
|
-
}
|
|
62839
62790
|
var right = colgroup.slice(index + colSpan).reduce(function (a, b) {
|
|
62840
62791
|
return tfoot_toNum(a) + tfoot_toNum(b);
|
|
62841
62792
|
}, 0);
|
|
@@ -63058,7 +63009,6 @@ var emptyRef = {
|
|
|
63058
63009
|
floatRight = _useTableLayout.floatRight,
|
|
63059
63010
|
width = _useTableLayout.width,
|
|
63060
63011
|
shouldLastColAuto = _useTableLayout.shouldLastColAuto,
|
|
63061
|
-
maxScrollLeft = _useTableLayout.maxScrollLeft,
|
|
63062
63012
|
scrollBarWidth = _useTableLayout.scrollBarWidth,
|
|
63063
63013
|
scrollWidth = _useTableLayout.scrollWidth,
|
|
63064
63014
|
resizeFlag = _useTableLayout.resizeFlag;
|
|
@@ -63154,19 +63104,6 @@ var emptyRef = {
|
|
|
63154
63104
|
scrollLeft: props.scrollLeft,
|
|
63155
63105
|
isRtl: isRtl
|
|
63156
63106
|
});
|
|
63157
|
-
|
|
63158
|
-
// handle head and foot scroll
|
|
63159
|
-
var handleHeaderWheel = usePersistFn(function (e) {
|
|
63160
|
-
var scrollEl = scrollRef.current;
|
|
63161
|
-
if (!scrollEl) return;
|
|
63162
|
-
var max = scrollEl.scrollWidth - scrollEl.clientWidth;
|
|
63163
|
-
var scrollLeft = scrollEl.scrollLeft + e.deltaX;
|
|
63164
|
-
if (scrollLeft === scrollEl.scrollLeft) {
|
|
63165
|
-
return;
|
|
63166
|
-
}
|
|
63167
|
-
e.preventDefault();
|
|
63168
|
-
scrollEl.scrollLeft = Math.min(Math.max(scrollLeft, 0), max);
|
|
63169
|
-
});
|
|
63170
63107
|
var handleBodyScroll = usePersistFn(function (e) {
|
|
63171
63108
|
var target = e.currentTarget;
|
|
63172
63109
|
if (!target) return;
|
|
@@ -63274,7 +63211,6 @@ var emptyRef = {
|
|
|
63274
63211
|
jssStyle: props.jssStyle,
|
|
63275
63212
|
colgroup: colgroup
|
|
63276
63213
|
};
|
|
63277
|
-
var fixRightNum = (isRtl ? -1 * maxScrollLeft : maxScrollLeft) - virtualInfo.innerLeft;
|
|
63278
63214
|
var StickyWrapper = props.sticky ? src_sticky_sticky : (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment;
|
|
63279
63215
|
var sticky = typeof_default()(props.sticky) === 'object' ? props.sticky : {
|
|
63280
63216
|
top: 0
|
|
@@ -63287,7 +63223,8 @@ var emptyRef = {
|
|
|
63287
63223
|
parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
|
|
63288
63224
|
};
|
|
63289
63225
|
var isRenderVirtualTable = virtual || props.sticky || !((_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length);
|
|
63290
|
-
var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper
|
|
63226
|
+
var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper // isScrollY && scrollBarWidth && tableClasses?.scrollY,
|
|
63227
|
+
);
|
|
63291
63228
|
var footWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.footWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
|
|
63292
63229
|
var renderHeadMirrorScroller = function renderHeadMirrorScroller() {
|
|
63293
63230
|
var _scrollRef$current, _scrollRef$current2, _scrollRef$current3;
|
|
@@ -63328,22 +63265,7 @@ var emptyRef = {
|
|
|
63328
63265
|
if (isRenderVirtualTable) {
|
|
63329
63266
|
var _props$data4;
|
|
63330
63267
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
63331
|
-
children: [renderHeadMirrorScroller(),
|
|
63332
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63333
|
-
className: headWrapperClass,
|
|
63334
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
63335
|
-
style: {
|
|
63336
|
-
width: width,
|
|
63337
|
-
transform: "translate3d(".concat(0 - virtualInfo.innerLeft, "px, 0, 0)")
|
|
63338
|
-
},
|
|
63339
|
-
ref: theadRef,
|
|
63340
|
-
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()(objectSpread2_default()({}, headCommonProps), {}, {
|
|
63341
|
-
fixLeftNum: virtualInfo.innerLeft,
|
|
63342
|
-
fixRightNum: fixRightNum
|
|
63343
|
-
}))]
|
|
63344
|
-
})
|
|
63345
|
-
})
|
|
63346
|
-
})), /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_scroll, {
|
|
63268
|
+
children: [renderHeadMirrorScroller(), /*#__PURE__*/(0,jsx_runtime.jsxs)(virtual_scroll_scroll, {
|
|
63347
63269
|
style: scrollWrapperStyle,
|
|
63348
63270
|
scrollerStyle: (_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length ? virtualScrollerStyle : emptyStyle,
|
|
63349
63271
|
wrapperRef: scrollRef,
|
|
@@ -63352,7 +63274,18 @@ var emptyRef = {
|
|
|
63352
63274
|
onScroll: handleVirtualScroll,
|
|
63353
63275
|
defaultHeight: context.emptyHeight,
|
|
63354
63276
|
isScrollY: isScrollY,
|
|
63355
|
-
children: /*#__PURE__*/(0,jsx_runtime.
|
|
63277
|
+
children: [!props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, props.sticky ? stickyProps : {}), {}, {
|
|
63278
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63279
|
+
className: headWrapperClass,
|
|
63280
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
63281
|
+
style: {
|
|
63282
|
+
width: width
|
|
63283
|
+
},
|
|
63284
|
+
ref: theadRef,
|
|
63285
|
+
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps))]
|
|
63286
|
+
})
|
|
63287
|
+
})
|
|
63288
|
+
})), /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
63356
63289
|
style: {
|
|
63357
63290
|
width: width,
|
|
63358
63291
|
transform: virtualInfo.getTranslate()
|
|
@@ -63361,25 +63294,19 @@ var emptyRef = {
|
|
|
63361
63294
|
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
|
|
63362
63295
|
currentIndex: virtualInfo.startIndex,
|
|
63363
63296
|
data: virtualInfo.data,
|
|
63364
|
-
setRowHeight: virtualInfo.setRowHeight
|
|
63365
|
-
fixLeftNum: virtualInfo.innerLeft,
|
|
63366
|
-
fixRightNum: fixRightNum
|
|
63367
|
-
}))]
|
|
63368
|
-
})
|
|
63369
|
-
}), renderEmpty(), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63370
|
-
className: footWrapperClass,
|
|
63371
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
63372
|
-
style: {
|
|
63373
|
-
width: width,
|
|
63374
|
-
transform: "translate3d(-".concat(virtualInfo.innerLeft, "px, 0, 0)")
|
|
63375
|
-
},
|
|
63376
|
-
ref: tfootRef,
|
|
63377
|
-
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()(objectSpread2_default()({}, footCommonProps), {}, {
|
|
63378
|
-
fixLeftNum: virtualInfo.innerLeft,
|
|
63379
|
-
fixRightNum: fixRightNum
|
|
63297
|
+
setRowHeight: virtualInfo.setRowHeight
|
|
63380
63298
|
}))]
|
|
63381
|
-
})
|
|
63382
|
-
|
|
63299
|
+
}), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63300
|
+
className: footWrapperClass,
|
|
63301
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
63302
|
+
style: {
|
|
63303
|
+
width: width
|
|
63304
|
+
},
|
|
63305
|
+
ref: tfootRef,
|
|
63306
|
+
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
|
|
63307
|
+
})
|
|
63308
|
+
}) : null]
|
|
63309
|
+
}), renderEmpty()]
|
|
63383
63310
|
});
|
|
63384
63311
|
}
|
|
63385
63312
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
@@ -63416,27 +63343,6 @@ var emptyRef = {
|
|
|
63416
63343
|
align: "right"
|
|
63417
63344
|
}, pagination), paginationInfo));
|
|
63418
63345
|
};
|
|
63419
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
63420
|
-
// 绑定 wheel 事件
|
|
63421
|
-
if (theadRef.current && theadRef.current.parentElement) {
|
|
63422
|
-
theadRef.current.parentElement.addEventListener('wheel', handleHeaderWheel, {
|
|
63423
|
-
passive: false
|
|
63424
|
-
});
|
|
63425
|
-
}
|
|
63426
|
-
if (tfootRef.current && tfootRef.current.parentElement) {
|
|
63427
|
-
tfootRef.current.parentElement.addEventListener('wheel', handleHeaderWheel, {
|
|
63428
|
-
passive: false
|
|
63429
|
-
});
|
|
63430
|
-
}
|
|
63431
|
-
return function () {
|
|
63432
|
-
if (theadRef.current && theadRef.current.parentElement) {
|
|
63433
|
-
theadRef.current.parentElement.removeEventListener('wheel', handleHeaderWheel);
|
|
63434
|
-
}
|
|
63435
|
-
if (tfootRef.current && tfootRef.current.parentElement) {
|
|
63436
|
-
tfootRef.current.parentElement.removeEventListener('wheel', handleHeaderWheel);
|
|
63437
|
-
}
|
|
63438
|
-
};
|
|
63439
|
-
}, [theadRef.current, isScrollY]);
|
|
63440
63346
|
var getRenderIndexByData = function getRenderIndexByData(data) {
|
|
63441
63347
|
var originKey = typeof data === 'string' ? data : getKey(props.keygen, data);
|
|
63442
63348
|
var index = treeData.findIndex(function (item) {
|
|
@@ -69812,7 +69718,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69812
69718
|
|
|
69813
69719
|
|
|
69814
69720
|
/* harmony default export */ var src_0 = ({
|
|
69815
|
-
version: '3.7.0-beta.
|
|
69721
|
+
version: '3.7.0-beta.3'
|
|
69816
69722
|
});
|
|
69817
69723
|
}();
|
|
69818
69724
|
/******/ return __webpack_exports__;
|