wargerm 0.5.6 → 0.5.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/dist/index.esm.js +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -10571,7 +10571,7 @@ function DragBox(_ref) {
|
|
10571
10571
|
}, children)) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
10572
10572
|
}
|
10573
10573
|
|
10574
|
-
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
10574
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10575
10575
|
|
10576
10576
|
var ModalForm = function ModalForm(props, ref) {
|
10577
10577
|
var columns = props.columns,
|
@@ -10586,6 +10586,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10586
10586
|
record = props.record,
|
10587
10587
|
onFormChange = props.onFormChange,
|
10588
10588
|
formItemChild = props.formItemChild,
|
10589
|
+
onCancel = props.onCancel,
|
10589
10590
|
extraProps = _objectWithoutProperties(props, _excluded$g);
|
10590
10591
|
|
10591
10592
|
var formRef = useRef(null);
|
@@ -10648,6 +10649,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10648
10649
|
}();
|
10649
10650
|
|
10650
10651
|
var handleCancel = function handleCancel() {
|
10652
|
+
onCancel && onCancel();
|
10651
10653
|
setVisible(false);
|
10652
10654
|
};
|
10653
10655
|
|
package/dist/index.js
CHANGED
@@ -10630,7 +10630,7 @@ function DragBox(_ref) {
|
|
10630
10630
|
}, children)) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
10631
10631
|
}
|
10632
10632
|
|
10633
|
-
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
10633
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10634
10634
|
|
10635
10635
|
var ModalForm = function ModalForm(props, ref) {
|
10636
10636
|
var columns = props.columns,
|
@@ -10645,6 +10645,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10645
10645
|
record = props.record,
|
10646
10646
|
onFormChange = props.onFormChange,
|
10647
10647
|
formItemChild = props.formItemChild,
|
10648
|
+
onCancel = props.onCancel,
|
10648
10649
|
extraProps = _objectWithoutProperties(props, _excluded$g);
|
10649
10650
|
|
10650
10651
|
var formRef = React.useRef(null);
|
@@ -10707,6 +10708,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10707
10708
|
}();
|
10708
10709
|
|
10709
10710
|
var handleCancel = function handleCancel() {
|
10711
|
+
onCancel && onCancel();
|
10710
10712
|
setVisible(false);
|
10711
10713
|
};
|
10712
10714
|
|