shineout 3.9.0-beta.21 → 3.9.0-beta.22

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.9.0-beta.21'
525
+ version: '3.9.0-beta.22'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12400,7 +12400,7 @@ var handleStyle = function handleStyle(style) {
12400
12400
  };
12401
12401
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12402
12402
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12403
- /* harmony default export */ var version = ('3.9.0-beta.21');
12403
+ /* harmony default export */ var version = ('3.9.0-beta.22');
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12405
12405
 
12406
12406
 
@@ -30979,6 +30979,9 @@ var addResizeObserver = function addResizeObserver(el, handler) {
30979
30979
  lastWidth = el.clientWidth;
30980
30980
  lastHeight = el.clientHeight;
30981
30981
  h = function h(entry) {
30982
+ if ((el === null || el === void 0 ? void 0 : el.offsetParent) === null) {
30983
+ return;
30984
+ }
30982
30985
  var _entry$0$contentRect = entry[0].contentRect,
30983
30986
  width = _entry$0$contentRect.width,
30984
30987
  height = _entry$0$contentRect.height;
@@ -64459,7 +64462,7 @@ var useTableLayout = function useTableLayout(props) {
64459
64462
  });
64460
64463
  var checkFloat = use_persist_fn(function () {
64461
64464
  var scrollEl = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current;
64462
- if (!scrollEl) return;
64465
+ if (!scrollEl || !(scrollEl !== null && scrollEl !== void 0 && scrollEl.offsetParent)) return;
64463
64466
  var max = scrollEl.scrollWidth - scrollEl.clientWidth;
64464
64467
  var min = 0;
64465
64468
  var left = scrollEl.scrollLeft;
@@ -67036,6 +67039,7 @@ function Table(props) {
67036
67039
  setScrollAble(isScrollAble);
67037
67040
  }, [virtual]);
67038
67041
 
67042
+ // TODO: 没用的tbodyHeight,有空移除了
67039
67043
  // 虚拟列表高度另外计算
67040
67044
  var _useResize = useResize({
67041
67045
  targetRef: virtual ? emptyRef : tbodyRef
@@ -74168,7 +74172,7 @@ var upload_interface = __webpack_require__(8821);
74168
74172
 
74169
74173
 
74170
74174
  /* harmony default export */ var src_0 = ({
74171
- version: '3.9.0-beta.21'
74175
+ version: '3.9.0-beta.22'
74172
74176
  });
74173
74177
  }();
74174
74178
  /******/ return __webpack_exports__;