shineout 3.7.4-beta.2 → 3.7.4-beta.3

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.4-beta.2'
525
+ version: '3.7.4-beta.3'
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.4-beta.2');
12237
+ /* harmony default export */ var version = ('3.7.4-beta.3');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -31280,16 +31280,18 @@ var usePositionStyle = function usePositionStyle(config) {
31280
31280
  };
31281
31281
  };
31282
31282
  var getAbsoluteStyle = function getAbsoluteStyle(position) {
31283
- var _scrollElRef$current;
31283
+ var _scrollElRef$current, _scrollElRef$current2, _scrollElRef$current3;
31284
31284
  if (!parentElRef.current) return {
31285
31285
  style: hideStyle
31286
31286
  };
31287
31287
  var rect = context.parentRect;
31288
31288
  var needCheck = !show || !shallow_equal(context.prevParentPosition, parentElNewPosition);
31289
- if (needCheck && scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current = scrollElRef.current) !== null && _scrollElRef$current !== void 0 && _scrollElRef$current.contains(parentElRef.current)) {
31290
- var _scrollElRef$current2;
31291
- var visibleRect = ((_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.getBoundingClientRect()) || {};
31292
- if (rect.bottom < visibleRect.top || rect.top > visibleRect.bottom || rect.right < visibleRect.left || rect.left > visibleRect.right) {
31289
+ var scrollTop = (scrollElRef === null || scrollElRef === void 0 || (_scrollElRef$current = scrollElRef.current) === null || _scrollElRef$current === void 0 ? void 0 : _scrollElRef$current.scrollTop) || 0;
31290
+ var scrollLeft = (scrollElRef === null || scrollElRef === void 0 || (_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.scrollLeft) || 0;
31291
+ if (needCheck && scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current3 = scrollElRef.current) !== null && _scrollElRef$current3 !== void 0 && _scrollElRef$current3.contains(parentElRef.current)) {
31292
+ var _scrollElRef$current4;
31293
+ var visibleRect = ((_scrollElRef$current4 = scrollElRef.current) === null || _scrollElRef$current4 === void 0 ? void 0 : _scrollElRef$current4.getBoundingClientRect()) || {};
31294
+ if (rect.bottom < visibleRect.top || rect.top > visibleRect.bottom + scrollTop || rect.right < visibleRect.left || rect.left > visibleRect.right + scrollLeft) {
31293
31295
  return {
31294
31296
  style: hideStyle
31295
31297
  };
@@ -71618,7 +71620,7 @@ var upload_interface = __webpack_require__(8821);
71618
71620
 
71619
71621
 
71620
71622
  /* harmony default export */ var src_0 = ({
71621
- version: '3.7.4-beta.2'
71623
+ version: '3.7.4-beta.3'
71622
71624
  });
71623
71625
  }();
71624
71626
  /******/ return __webpack_exports__;