shineout 3.6.6-beta.6 → 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 +1 -1
- package/dist/shineout.js +14 -5
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
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.
|
|
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.
|
|
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
|
|
|
@@ -47557,7 +47557,8 @@ var Modal = function Modal(props) {
|
|
|
47557
47557
|
renderEd: false,
|
|
47558
47558
|
isMask: false,
|
|
47559
47559
|
mouseDownTarget: null,
|
|
47560
|
-
mouseUpTarget: null
|
|
47560
|
+
mouseUpTarget: null,
|
|
47561
|
+
content: null
|
|
47561
47562
|
}),
|
|
47562
47563
|
context = _useRef.current;
|
|
47563
47564
|
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.visible || props.autoShow),
|
|
@@ -47800,6 +47801,14 @@ var Modal = function Modal(props) {
|
|
|
47800
47801
|
if (props.moveable && !props.fullScreen) {
|
|
47801
47802
|
panelStyle.transform = "translate(".concat(moveInfo.pos.x, "px, ").concat(moveInfo.pos.y, "px)");
|
|
47802
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;
|
|
47803
47812
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(FormFooterProvider, {
|
|
47804
47813
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
47805
47814
|
onClick: function onClick(e) {
|
|
@@ -47818,11 +47827,11 @@ var Modal = function Modal(props) {
|
|
|
47818
47827
|
onMouseUp: handleMaskMouseUp,
|
|
47819
47828
|
onClick: handleMaskClick,
|
|
47820
47829
|
onAnimationStart: updateOrigin,
|
|
47821
|
-
children: /*#__PURE__*/(0,jsx_runtime.
|
|
47830
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
47822
47831
|
ref: panelRef,
|
|
47823
47832
|
className: classnames_default()(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.panel, props.className),
|
|
47824
47833
|
style: panelStyle,
|
|
47825
|
-
children:
|
|
47834
|
+
children: content
|
|
47826
47835
|
})
|
|
47827
47836
|
}))
|
|
47828
47837
|
})
|
|
@@ -70073,7 +70082,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
70073
70082
|
|
|
70074
70083
|
|
|
70075
70084
|
/* harmony default export */ var src_0 = ({
|
|
70076
|
-
version: '3.6.6-beta.
|
|
70085
|
+
version: '3.6.6-beta.7'
|
|
70077
70086
|
});
|
|
70078
70087
|
}();
|
|
70079
70088
|
/******/ return __webpack_exports__;
|