shineout 3.5.5-beta.3 → 3.5.5-beta.4

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
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.5-beta.3'
510
+ version: '3.5.5-beta.4'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.5-beta.3');
12043
+ /* harmony default export */ var version = ('3.5.5-beta.4');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -37325,9 +37325,9 @@ var Scroll = function Scroll(props) {
37325
37325
  overflow: 'hidden',
37326
37326
  position: 'sticky'
37327
37327
  }, isRtl ? 'right' : 'left', 0), "top", 0);
37328
- var paddingTop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
37329
- return Math.max(0, Math.floor(scrollHeight - height));
37330
- }, [scrollHeight, height]);
37328
+
37329
+ // 当滚动容器的高度为 0 时,paddingTop 0,避免滚动条抖动现象
37330
+ var paddingTop = height === 0 ? 0 : Math.max(0, Math.floor(scrollHeight - height));
37331
37331
  var placeStyle = {
37332
37332
  paddingTop: paddingTop,
37333
37333
  width: scrollWidth,
@@ -67185,7 +67185,7 @@ var upload_interface = __webpack_require__(8821);
67185
67185
 
67186
67186
 
67187
67187
  /* harmony default export */ var src_0 = ({
67188
- version: '3.5.5-beta.3'
67188
+ version: '3.5.5-beta.4'
67189
67189
  });
67190
67190
  }();
67191
67191
  /******/ return __webpack_exports__;