shineout 3.7.11-beta.3 → 3.7.11-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.7.11-beta.3'
525
+ version: '3.7.11-beta.5'
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.11-beta.3');
12237
+ /* harmony default export */ var version = ('3.7.11-beta.5');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -30370,26 +30370,11 @@ var usePopup = function usePopup(props) {
30370
30370
  }
30371
30371
  setOpenState(!!props.open);
30372
30372
  }, [props.open]);
30373
-
30374
- // const getPopUpHeight = () => {
30375
- // let height = 0;
30376
- // if (popupRef.current) {
30377
- // const el = popupRef.current;
30378
- // const parent = el?.parentElement;
30379
- // let clone = el.cloneNode(true) as HTMLElement;
30380
- // clone.style.opacity = '0';
30381
- // clone.style.display = '';
30382
- // clone.style.visibility = 'visible';
30383
- // clone.style.pointerEvents = 'none';
30384
- // parent?.appendChild(clone);
30385
- // height = clone.offsetHeight;
30386
- // parent?.removeChild(clone);
30387
- // //@ts-ignore
30388
- // clone = null;
30389
- // }
30390
- // return height;
30391
- // };
30392
-
30373
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30374
+ if (props.open === undefined && defaultOpen) {
30375
+ setOpenState(true);
30376
+ }
30377
+ }, []);
30393
30378
  var handleFocus = function handleFocus(delay) {
30394
30379
  if (props.open === undefined) {
30395
30380
  updatePosition();
@@ -71956,7 +71941,7 @@ var upload_interface = __webpack_require__(8821);
71956
71941
 
71957
71942
 
71958
71943
  /* harmony default export */ var src_0 = ({
71959
- version: '3.7.11-beta.3'
71944
+ version: '3.7.11-beta.5'
71960
71945
  });
71961
71946
  }();
71962
71947
  /******/ return __webpack_exports__;