shineout 3.9.1-beta.1 → 3.9.1-beta.2

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.1-beta.1'
525
+ version: '3.9.1-beta.2'
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.1-beta.1');
12403
+ /* harmony default export */ var version = ('3.9.1-beta.2');
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12405
12405
 
12406
12406
 
@@ -64049,7 +64049,8 @@ var scroll_table_Scroll = function Scroll(props) {
64049
64049
  var wrapperRef = useForkRef(scrollRef, props.wrapperRef);
64050
64050
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
64051
64051
  isMouseDown: false,
64052
- lastTableHeight: 0
64052
+ lastTableHeight: 0,
64053
+ prevTableHeight: 0
64053
64054
  }),
64054
64055
  context = _useRef.current;
64055
64056
  var _props$scrollHeight = props.scrollHeight,
@@ -64161,16 +64162,16 @@ var scroll_table_Scroll = function Scroll(props) {
64161
64162
  if (!props.tableRef.current) return;
64162
64163
  var isVisible = props.tableRef.current.offsetParent !== null;
64163
64164
  var wasHidden = props.tableRef.current.getAttribute('data-was-hidden') === 'true';
64164
- var h = context.lastTableHeight || props.tableRef.current.clientHeight;
64165
+ var h = context.prevTableHeight || props.tableRef.current.clientHeight;
64165
64166
  if (h > 0) {
64166
- context.lastTableHeight = h;
64167
+ context.prevTableHeight = h;
64167
64168
  }
64168
64169
  if (isVisible && wasHidden) {
64169
64170
  props.tableRef.current.style.height = '100%';
64170
64171
  props.tableRef.current.removeAttribute('data-was-hidden');
64171
- } else if (!isVisible && props.tableRef.current.style.height === '100%') {
64172
+ } else if (!isVisible && props.tableRef.current.style.height === '100%' && context.prevTableHeight > 0) {
64172
64173
  // 加height === '100%'判断是因为:多层父级flex嵌套才有这个问题
64173
- props.tableRef.current.style.height = "".concat(context.lastTableHeight, "px");
64174
+ props.tableRef.current.style.height = "".concat(context.prevTableHeight, "px");
64174
64175
  props.tableRef.current.setAttribute('data-was-hidden', 'true');
64175
64176
  }
64176
64177
  }, [paddingTop]);
@@ -74409,7 +74410,7 @@ var upload_interface = __webpack_require__(8821);
74409
74410
 
74410
74411
 
74411
74412
  /* harmony default export */ var src_0 = ({
74412
- version: '3.9.1-beta.1'
74413
+ version: '3.9.1-beta.2'
74413
74414
  });
74414
74415
  }();
74415
74416
  /******/ return __webpack_exports__;