shineout 3.8.0 → 3.8.1-beta.1

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.0'
525
+ version: '3.8.1-beta.1'
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.0');
12389
+ /* harmony default export */ var version = ('3.8.1-beta.1');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -49255,6 +49255,9 @@ var removeModalInstance = function removeModalInstance(instanceId) {
49255
49255
  return id !== instanceId;
49256
49256
  });
49257
49257
  };
49258
+ var getInstanceIds = function getInstanceIds() {
49259
+ return modal_content_state.mutate.instanceIds;
49260
+ };
49258
49261
  var mousePosition = null;
49259
49262
  var getClickPosition = function getClickPosition(e) {
49260
49263
  mousePosition = {
@@ -49441,8 +49444,7 @@ var Modal = function Modal(props) {
49441
49444
  if (visible) {
49442
49445
  setDocumentOverflow();
49443
49446
  } else {
49444
- if (config.instanceIds.length && config.instanceIds[config.instanceIds.length - 1] === context.instanceId) return;
49445
- resetDocumentOverflow();
49447
+ if (config.instanceIds.length === 0) resetDocumentOverflow();
49446
49448
  }
49447
49449
  }
49448
49450
  }, [visible, config.instanceIds]);
@@ -49457,10 +49459,10 @@ var Modal = function Modal(props) {
49457
49459
  return function () {
49458
49460
  var _props$shouldDestroy2;
49459
49461
  removeModalInstance(context.instanceId);
49460
- if (context.isMask) {
49462
+ var instanceIds = getInstanceIds();
49463
+ if (instanceIds.length === 0) {
49461
49464
  resetDocumentOverflow();
49462
49465
  }
49463
- ;
49464
49466
  (_props$shouldDestroy2 = props.shouldDestroy) === null || _props$shouldDestroy2 === void 0 || _props$shouldDestroy2.call(props, true);
49465
49467
  if (context.isMask) {
49466
49468
  context.isMask = false;
@@ -73022,7 +73024,7 @@ var upload_interface = __webpack_require__(8821);
73022
73024
 
73023
73025
 
73024
73026
  /* harmony default export */ var src_0 = ({
73025
- version: '3.8.0'
73027
+ version: '3.8.1-beta.1'
73026
73028
  });
73027
73029
  }();
73028
73030
  /******/ return __webpack_exports__;