shineout 3.7.7-beta.6 → 3.7.7-beta.7

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.7.7-beta.6'
525
+ version: '3.7.7-beta.7'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.7-beta.6');
12237
+ /* harmony default export */ var version = ('3.7.7-beta.7');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -62770,7 +62770,7 @@ var useTableVirtual = function useTableVirtual(props) {
62770
62770
  for (var i = 0; i <= index; i++) {
62771
62771
  sum += context.cachedHeight[i] || props.rowHeight;
62772
62772
  }
62773
- return sum + props.theadAndTfootHeight;
62773
+ return sum + props.theadHeight + props.tfootHeight;
62774
62774
  };
62775
62775
  var setRowHeight = usePersistFn(function (index, height) {
62776
62776
  if (props.disabled) return;
@@ -62913,7 +62913,7 @@ var useTableVirtual = function useTableVirtual(props) {
62913
62913
  callback();
62914
62914
  }
62915
62915
  };
62916
- props.scrollRef.current.scrollTop = beforeHeight;
62916
+ props.scrollRef.current.scrollTop = beforeHeight - props.theadHeight;
62917
62917
  }
62918
62918
  });
62919
62919
  var scrollColumnByLeft = usePersistFn(function (targetLeft) {
@@ -62990,7 +62990,7 @@ var useTableVirtual = function useTableVirtual(props) {
62990
62990
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
62991
62991
  if (props.disabled) return;
62992
62992
  setHeight(getContentHeight(props.data.length - 1));
62993
- }, [props.data.length, props.theadAndTfootHeight]);
62993
+ }, [props.data.length, props.theadHeight, props.tfootHeight]);
62994
62994
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
62995
62995
  if (props.disabled) return;
62996
62996
  if (context.heightCallback) {
@@ -64776,7 +64776,8 @@ var emptyRef = {
64776
64776
  };
64777
64777
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
64778
64778
  emptyHeight: 0,
64779
- theadAndTfootHeight: 0,
64779
+ theadHeight: 0,
64780
+ tfootHeight: 0,
64780
64781
  scrollingTimer: null
64781
64782
  }),
64782
64783
  context = _useRef.current;
@@ -64914,9 +64915,10 @@ var emptyRef = {
64914
64915
  var theadHeight = (theadRef === null || theadRef === void 0 || (_theadRef$current = theadRef.current) === null || _theadRef$current === void 0 ? void 0 : _theadRef$current.clientHeight) || 0;
64915
64916
  var tfootHeight = ((_tfootRef$current = tfootRef.current) === null || _tfootRef$current === void 0 ? void 0 : _tfootRef$current.clientHeight) || 0;
64916
64917
  if (props.sticky) {
64917
- context.theadAndTfootHeight = tfootHeight;
64918
+ context.tfootHeight = tfootHeight;
64918
64919
  } else {
64919
- context.theadAndTfootHeight = theadHeight + tfootHeight;
64920
+ context.theadHeight = theadHeight;
64921
+ context.tfootHeight = tfootHeight;
64920
64922
  }
64921
64923
  });
64922
64924
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
@@ -64952,7 +64954,8 @@ var emptyRef = {
64952
64954
  innerRef: tbodyRef,
64953
64955
  scrollLeft: props.scrollLeft,
64954
64956
  isRtl: isRtl,
64955
- theadAndTfootHeight: context.theadAndTfootHeight
64957
+ theadHeight: context.theadHeight,
64958
+ tfootHeight: context.tfootHeight
64956
64959
  });
64957
64960
  var syncHeaderScroll = usePersistFn(function (left) {
64958
64961
  var _tableRef$current;
@@ -71801,7 +71804,7 @@ var upload_interface = __webpack_require__(8821);
71801
71804
 
71802
71805
 
71803
71806
  /* harmony default export */ var src_0 = ({
71804
- version: '3.7.7-beta.6'
71807
+ version: '3.7.7-beta.7'
71805
71808
  });
71806
71809
  }();
71807
71810
  /******/ return __webpack_exports__;