shineout 3.7.0-beta.2 → 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 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.2'
517
+ version: '3.7.0-beta.3'
518
518
  };
@@ -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.2');
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 = defineProperty_default()(defineProperty_default()({
38759
+ var containerStyle = {
38760
38760
  height: '100%',
38761
38761
  width: '100%',
38762
38762
  display: 'inline-flex',
38763
- overflow: 'hidden',
38764
- position: 'sticky'
38765
- }, isRtl ? 'right' : 'left', 0), "top", 0);
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
- innerLeft = _useState2[0],
60875
- setLeft = _useState2[1];
60876
- var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
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
- innerTop = _useState4[0],
60879
- setTop = _useState4[1];
60880
- var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.data.length * props.rowHeight),
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
- scrollHeight = _useState6[0],
60883
- setHeight = _useState6[1];
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
- startIndex = _useState8[0],
60887
- setStartIndex = _useState8[1];
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
- if (!props.isRtl && l < 0) {
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 scrollLeft = info.scrollLeft,
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.virtual) {
61980
- // 这是virtual table场景下的th样式
61981
- return {
61982
- transform: "translate3d(var(--virtual-fixed-left, 0), 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.virtual) {
61997
- // 这是virtual table场景下的th样式
61998
- return {
61999
- transform: "translate3d(var(--virtual-fixed-right, 0), 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.virtual) {
62373
- return {
62374
- transform: "translate3d(var(--virtual-fixed-left, 0), 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.virtual) {
62387
- return {
62388
- transform: "translate3d(var(--virtual-fixed-right, 0), 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,7 +62738,6 @@ var Tr = function Tr(props) {
62775
62738
  isEmptyTree: props.isEmptyTree,
62776
62739
  treeColumnsName: props.treeColumnsName,
62777
62740
  setRowHeight: props.setRowHeight,
62778
- virtual: props.virtual,
62779
62741
  striped: props.striped,
62780
62742
  radio: props.radio,
62781
62743
  isCellHover: isCellHover,
@@ -62816,11 +62778,6 @@ var tfoot_isArray = isArray,
62816
62778
  var getFixedStyle = function getFixedStyle(fixed, index, colSpan) {
62817
62779
  var colgroup = props.colgroup;
62818
62780
  if (fixed === 'left') {
62819
- if (props.virtual) {
62820
- return {
62821
- transform: "translate3d(var(--virtual-fixed-left, 0), 0, 0)"
62822
- };
62823
- }
62824
62781
  var left = colgroup.slice(0, index).reduce(function (a, b) {
62825
62782
  return tfoot_toNum(a) + tfoot_toNum(b);
62826
62783
  }, 0);
@@ -62830,11 +62787,6 @@ var tfoot_isArray = isArray,
62830
62787
  };
62831
62788
  }
62832
62789
  if (fixed === 'right') {
62833
- if (props.virtual) {
62834
- return {
62835
- transform: "translate3d(var(--virtual-fixed-right, 0), 0, 0)"
62836
- };
62837
- }
62838
62790
  var right = colgroup.slice(index + colSpan).reduce(function (a, b) {
62839
62791
  return tfoot_toNum(a) + tfoot_toNum(b);
62840
62792
  }, 0);
@@ -63057,7 +63009,6 @@ var emptyRef = {
63057
63009
  floatRight = _useTableLayout.floatRight,
63058
63010
  width = _useTableLayout.width,
63059
63011
  shouldLastColAuto = _useTableLayout.shouldLastColAuto,
63060
- maxScrollLeft = _useTableLayout.maxScrollLeft,
63061
63012
  scrollBarWidth = _useTableLayout.scrollBarWidth,
63062
63013
  scrollWidth = _useTableLayout.scrollWidth,
63063
63014
  resizeFlag = _useTableLayout.resizeFlag;
@@ -63153,19 +63104,6 @@ var emptyRef = {
63153
63104
  scrollLeft: props.scrollLeft,
63154
63105
  isRtl: isRtl
63155
63106
  });
63156
-
63157
- // handle head and foot scroll
63158
- var handleHeaderWheel = usePersistFn(function (e) {
63159
- var scrollEl = scrollRef.current;
63160
- if (!scrollEl) return;
63161
- var max = scrollEl.scrollWidth - scrollEl.clientWidth;
63162
- var scrollLeft = scrollEl.scrollLeft + e.deltaX;
63163
- if (scrollLeft === scrollEl.scrollLeft) {
63164
- return;
63165
- }
63166
- e.preventDefault();
63167
- scrollEl.scrollLeft = Math.min(Math.max(scrollLeft, 0), max);
63168
- });
63169
63107
  var handleBodyScroll = usePersistFn(function (e) {
63170
63108
  var target = e.currentTarget;
63171
63109
  if (!target) return;
@@ -63273,7 +63211,6 @@ var emptyRef = {
63273
63211
  jssStyle: props.jssStyle,
63274
63212
  colgroup: colgroup
63275
63213
  };
63276
- var fixRightNum = (isRtl ? -1 * maxScrollLeft : maxScrollLeft) - virtualInfo.innerLeft;
63277
63214
  var StickyWrapper = props.sticky ? src_sticky_sticky : (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment;
63278
63215
  var sticky = typeof_default()(props.sticky) === 'object' ? props.sticky : {
63279
63216
  top: 0
@@ -63286,7 +63223,8 @@ var emptyRef = {
63286
63223
  parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
63287
63224
  };
63288
63225
  var isRenderVirtualTable = virtual || props.sticky || !((_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length);
63289
- var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
63226
+ var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper // isScrollY && scrollBarWidth && tableClasses?.scrollY,
63227
+ );
63290
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));
63291
63229
  var renderHeadMirrorScroller = function renderHeadMirrorScroller() {
63292
63230
  var _scrollRef$current, _scrollRef$current2, _scrollRef$current3;
@@ -63326,26 +63264,8 @@ var emptyRef = {
63326
63264
  };
63327
63265
  if (isRenderVirtualTable) {
63328
63266
  var _props$data4;
63329
- var virtualCssVar = {
63330
- '--virtual-fixed-left': "".concat(virtualInfo.innerLeft, "px"),
63331
- '--virtual-fixed-right': fixRightNum > 0 ? "-".concat(fixRightNum, "px") : "".concat(fixRightNum, "px")
63332
- };
63333
63267
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
63334
- children: [renderHeadMirrorScroller(), !props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, props.sticky ? stickyProps : {}), {}, {
63335
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63336
- className: headWrapperClass,
63337
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
63338
- style: objectSpread2_default()({
63339
- width: width,
63340
- transform: "translate3d(-".concat(virtualInfo.innerLeft, "px, 0, 0)")
63341
- }, virtualCssVar),
63342
- ref: theadRef,
63343
- children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()(objectSpread2_default()({}, headCommonProps), {}, {
63344
- virtual: true
63345
- }))]
63346
- })
63347
- })
63348
- })), /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_scroll, {
63268
+ children: [renderHeadMirrorScroller(), /*#__PURE__*/(0,jsx_runtime.jsxs)(virtual_scroll_scroll, {
63349
63269
  style: scrollWrapperStyle,
63350
63270
  scrollerStyle: (_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length ? virtualScrollerStyle : emptyStyle,
63351
63271
  wrapperRef: scrollRef,
@@ -63354,32 +63274,39 @@ var emptyRef = {
63354
63274
  onScroll: handleVirtualScroll,
63355
63275
  defaultHeight: context.emptyHeight,
63356
63276
  isScrollY: isScrollY,
63357
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
63358
- style: objectSpread2_default()({
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", {
63289
+ style: {
63359
63290
  width: width,
63360
63291
  transform: virtualInfo.getTranslate()
63361
- }, virtualCssVar),
63292
+ },
63362
63293
  ref: tbodyRef,
63363
63294
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
63364
63295
  currentIndex: virtualInfo.startIndex,
63365
63296
  data: virtualInfo.data,
63366
- setRowHeight: virtualInfo.setRowHeight,
63367
- virtual: true
63297
+ setRowHeight: virtualInfo.setRowHeight
63368
63298
  }))]
63369
- })
63370
- }), renderEmpty(), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63371
- className: footWrapperClass,
63372
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
63373
- style: objectSpread2_default()({
63374
- width: width,
63375
- transform: "translate3d(-".concat(virtualInfo.innerLeft, "px, 0, 0)")
63376
- }, virtualCssVar),
63377
- ref: tfootRef,
63378
- children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()(objectSpread2_default()({}, footCommonProps), {}, {
63379
- virtual: true
63380
- }))]
63381
- })
63382
- }) : null]
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.2'
69721
+ version: '3.7.0-beta.3'
69816
69722
  });
69817
69723
  }();
69818
69724
  /******/ return __webpack_exports__;