shineout 3.8.6-beta.4 → 3.8.6-beta.5

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.8.6-beta.4'
525
+ version: '3.8.6-beta.5'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.6-beta.4');
12389
+ /* harmony default export */ var version = ('3.8.6-beta.5');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -31152,7 +31152,9 @@ var getPositionStyle = function getPositionStyle(position, config) {
31152
31152
  var getSizingStyle = function getSizingStyle(position, _ref) {
31153
31153
  var boundary = _ref.boundary,
31154
31154
  parentRect = _ref.parentRect;
31155
- var boundaryRect = boundary.getBoundingClientRect();
31155
+ var boundaryEl = boundary();
31156
+ if (!boundaryEl) return {};
31157
+ var boundaryRect = boundaryEl.getBoundingClientRect();
31156
31158
  var maxHeight;
31157
31159
  if (position.endsWith('-top')) {
31158
31160
  maxHeight = boundaryRect.bottom - parentRect.top;
@@ -59800,7 +59802,9 @@ var MenuItem = function MenuItem(props) {
59800
59802
  lazy: false,
59801
59803
  offset: offset,
59802
59804
  style: popoverContentStyle,
59803
- boundary: mode !== 'horizontal' ? props.scrollRef.current : undefined,
59805
+ boundary: mode !== 'horizontal' ? function () {
59806
+ return props.scrollRef.current;
59807
+ } : undefined,
59804
59808
  children: function children(close) {
59805
59809
  return content(close);
59806
59810
  }
@@ -73325,7 +73329,7 @@ var upload_interface = __webpack_require__(8821);
73325
73329
 
73326
73330
 
73327
73331
  /* harmony default export */ var src_0 = ({
73328
- version: '3.8.6-beta.4'
73332
+ version: '3.8.6-beta.5'
73329
73333
  });
73330
73334
  }();
73331
73335
  /******/ return __webpack_exports__;