shineout 3.7.0-beta.28 → 3.7.0-beta.29

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.0-beta.28'
525
+ version: '3.7.0-beta.29'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12226,7 +12226,7 @@ var handleStyle = function handleStyle(style) {
12226
12226
  };
12227
12227
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12228
12228
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12229
- /* harmony default export */ var version = ('3.7.0-beta.28');
12229
+ /* harmony default export */ var version = ('3.7.0-beta.29');
12230
12230
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12231
12231
 
12232
12232
 
@@ -61039,11 +61039,14 @@ var scroll_table_Scroll = function Scroll(props) {
61039
61039
  });
61040
61040
 
61041
61041
  // 非定高的Table但依旧采用了virtual渲染方式,需要渲染出全部的data
61042
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
61042
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
61043
61043
  if (!props.tableRef.current) return;
61044
61044
  var rootTableHeight = props.tableRef.current.clientHeight;
61045
+ var container = containerRef.current;
61046
+ // 判断内容滚动高度是否真的超过了容器高度
61047
+ var isRealScroll = (container === null || container === void 0 ? void 0 : container.scrollHeight) !== undefined && container.scrollHeight > rootTableHeight;
61045
61048
  // 判断Table的根节点dom高度是否发生变化,如果变化了,则是因为不定高,被内部元素撑高了导致的
61046
- if (paddingTop > 0 && context.lastTableHeight > 0 && context.lastTableHeight !== rootTableHeight) {
61049
+ if (paddingTop > 0 && context.lastTableHeight > 0 && context.lastTableHeight !== rootTableHeight && !isRealScroll) {
61047
61050
  props.setFakeVirtual(true);
61048
61051
  context.lastTableHeight = 0;
61049
61052
  } else {
@@ -70937,7 +70940,7 @@ var upload_interface = __webpack_require__(8821);
70937
70940
 
70938
70941
 
70939
70942
  /* harmony default export */ var src_0 = ({
70940
- version: '3.7.0-beta.28'
70943
+ version: '3.7.0-beta.29'
70941
70944
  });
70942
70945
  }();
70943
70946
  /******/ return __webpack_exports__;