@lobehub/ui 1.155.4 → 1.155.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/es/FormModal/index.js +7 -3
- package/package.json +1 -1
package/es/FormModal/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["classNames", "className", "style", "closable", "styles", "allowFullscreen", "title", "wrapClassName", "afterOpenChange", "width", "onCancel", "centered", "open", "afterClose", "destroyOnClose", "closeIcon", "paddings", "maxHeight", "enableResponsive", "zIndex", "mask", "getContainer", "keyboard", "focusTriggerAfterClose", "forceRender", "loading", "footer", "submitButtonProps", "submitLoading", "onFinish", "submitText", "variant", "gap", "onSubmit"],
|
|
3
|
+
var _excluded = ["classNames", "className", "style", "closable", "styles", "allowFullscreen", "title", "wrapClassName", "afterOpenChange", "width", "onCancel", "centered", "open", "afterClose", "destroyOnClose", "closeIcon", "paddings", "maxHeight", "enableResponsive", "zIndex", "mask", "getContainer", "keyboard", "focusTriggerAfterClose", "forceRender", "loading", "footer", "submitButtonProps", "submitLoading", "onFinish", "submitText", "variant", "gap", "onSubmit", "children"],
|
|
4
4
|
_excluded2 = ["form", "footer"],
|
|
5
5
|
_excluded3 = ["form", "footer"];
|
|
6
6
|
import { Button } from 'antd';
|
|
@@ -48,6 +48,7 @@ var FormModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
48
48
|
variant = _ref$variant === void 0 ? 'pure' : _ref$variant,
|
|
49
49
|
gap = _ref.gap,
|
|
50
50
|
onSubmit = _ref.onSubmit,
|
|
51
|
+
children = _ref.children,
|
|
51
52
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
52
53
|
var _useResponsive = useResponsive(),
|
|
53
54
|
mobile = _useResponsive.mobile;
|
|
@@ -86,6 +87,7 @@ var FormModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
86
87
|
style: style,
|
|
87
88
|
styles: _objectSpread(_objectSpread({}, modalStyles), {}, {
|
|
88
89
|
body: _objectSpread({
|
|
90
|
+
paddingBottom: mobile ? 68 : undefined,
|
|
89
91
|
paddingTop: mobile ? 0 : undefined
|
|
90
92
|
}, modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.body)
|
|
91
93
|
}),
|
|
@@ -93,7 +95,7 @@ var FormModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
93
95
|
width: width,
|
|
94
96
|
wrapClassName: wrapClassName,
|
|
95
97
|
zIndex: zIndex,
|
|
96
|
-
children: /*#__PURE__*/_jsx(Form, _objectSpread({
|
|
98
|
+
children: /*#__PURE__*/_jsx(Form, _objectSpread(_objectSpread({
|
|
97
99
|
className: cx(s.form, formClassName),
|
|
98
100
|
classNames: {
|
|
99
101
|
footer: cx(s.footer, footerClassName)
|
|
@@ -119,7 +121,9 @@ var FormModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
119
121
|
footer: footerStyle
|
|
120
122
|
},
|
|
121
123
|
variant: variant
|
|
122
|
-
}, rest)
|
|
124
|
+
}, rest), {}, {
|
|
125
|
+
children: children
|
|
126
|
+
}))
|
|
123
127
|
});
|
|
124
128
|
});
|
|
125
129
|
export default FormModal;
|