shineout 3.6.6-beta.5 → 3.6.6-beta.7

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
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.6.6-beta.5'
517
+ version: '3.6.6-beta.7'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
12217
12217
  };
12218
12218
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12219
12219
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12220
- /* harmony default export */ var version = ('3.6.6-beta.5');
12220
+ /* harmony default export */ var version = ('3.6.6-beta.7');
12221
12221
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12222
12222
 
12223
12223
 
@@ -29857,11 +29857,6 @@ var usePopup = function usePopup(props) {
29857
29857
  updatePosition();
29858
29858
  }
29859
29859
  setOpenState(!!props.open);
29860
-
29861
- // 外部传了open时,需要正常的触发onCollapse;触发了onCollapse才能让组件内部的edit状态正确,否则可能会出现弹出层打开了但是用户却无法选择的情况
29862
- if (props.open !== undefined) {
29863
- changeOpen(!!props.open);
29864
- }
29865
29860
  }, [props.open]);
29866
29861
 
29867
29862
  // const getPopUpHeight = () => {
@@ -46830,7 +46825,7 @@ var DatePicker = function DatePicker(props0) {
46830
46825
  if (props.open) {
46831
46826
  func.startEdit();
46832
46827
  }
46833
- }, []);
46828
+ }, [props.open]);
46834
46829
  var _usePopup = use_popup({
46835
46830
  open: props.open,
46836
46831
  onCollapse: onCollapse,
@@ -47562,7 +47557,8 @@ var Modal = function Modal(props) {
47562
47557
  renderEd: false,
47563
47558
  isMask: false,
47564
47559
  mouseDownTarget: null,
47565
- mouseUpTarget: null
47560
+ mouseUpTarget: null,
47561
+ content: null
47566
47562
  }),
47567
47563
  context = _useRef.current;
47568
47564
  var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.visible || props.autoShow),
@@ -47805,6 +47801,14 @@ var Modal = function Modal(props) {
47805
47801
  if (props.moveable && !props.fullScreen) {
47806
47802
  panelStyle.transform = "translate(".concat(moveInfo.pos.x, "px, ").concat(moveInfo.pos.y, "px)");
47807
47803
  }
47804
+ var renderContent = function renderContent() {
47805
+ if (!props.visible && context.content !== null) return context.content;
47806
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
47807
+ children: [renderHeader(), renderBody(), renderFooter(), renderResize()]
47808
+ });
47809
+ };
47810
+ var content = renderContent();
47811
+ context.content = content;
47808
47812
  return /*#__PURE__*/(0,jsx_runtime.jsx)(FormFooterProvider, {
47809
47813
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
47810
47814
  onClick: function onClick(e) {
@@ -47823,11 +47827,11 @@ var Modal = function Modal(props) {
47823
47827
  onMouseUp: handleMaskMouseUp,
47824
47828
  onClick: handleMaskClick,
47825
47829
  onAnimationStart: updateOrigin,
47826
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
47830
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
47827
47831
  ref: panelRef,
47828
47832
  className: classnames_default()(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.panel, props.className),
47829
47833
  style: panelStyle,
47830
- children: [renderHeader(), renderBody(), renderFooter(), renderResize()]
47834
+ children: content
47831
47835
  })
47832
47836
  }))
47833
47837
  })
@@ -70078,7 +70082,7 @@ var upload_interface = __webpack_require__(8821);
70078
70082
 
70079
70083
 
70080
70084
  /* harmony default export */ var src_0 = ({
70081
- version: '3.6.6-beta.5'
70085
+ version: '3.6.6-beta.7'
70082
70086
  });
70083
70087
  }();
70084
70088
  /******/ return __webpack_exports__;