@hw-component/form 1.10.95 → 1.10.96

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.
@@ -61,11 +61,11 @@ var Index = function Index(_ref) {
61
61
  modalTitle = _useModifyProps.title,
62
62
  saveOldParams = _useModifyProps.saveOldParams;
63
63
  var cancel = function cancel() {
64
+ saveOldParams();
64
65
  if (dialogForm) {
65
66
  dialogForm.hide();
66
67
  return;
67
68
  }
68
- saveOldParams();
69
69
  if (onCancel) {
70
70
  return onCancel === null || onCancel === void 0 ? void 0 : onCancel();
71
71
  }
@@ -55,11 +55,11 @@ var Index = function Index(_ref) {
55
55
  modalTitle = _useModifyProps.title,
56
56
  saveOldParams = _useModifyProps.saveOldParams;
57
57
  var cancel = function cancel() {
58
+ saveOldParams();
58
59
  if (dialogForm) {
59
60
  dialogForm.hide();
60
61
  return;
61
62
  }
62
- saveOldParams();
63
63
  if (onCancel) {
64
64
  return onCancel === null || onCancel === void 0 ? void 0 : onCancel();
65
65
  }
@@ -64,11 +64,11 @@ var Index = function Index(_ref) {
64
64
  modalTitle = _useModifyProps.title,
65
65
  saveOldParams = _useModifyProps.saveOldParams;
66
66
  var cancel = function cancel() {
67
+ saveOldParams();
67
68
  if (dialogForm) {
68
69
  dialogForm.hide();
69
70
  return;
70
71
  }
71
- saveOldParams();
72
72
  if (onCancel) {
73
73
  return onCancel === null || onCancel === void 0 ? void 0 : onCancel();
74
74
  }
@@ -58,11 +58,11 @@ var Index = function Index(_ref) {
58
58
  modalTitle = _useModifyProps.title,
59
59
  saveOldParams = _useModifyProps.saveOldParams;
60
60
  var cancel = function cancel() {
61
+ saveOldParams();
61
62
  if (dialogForm) {
62
63
  dialogForm.hide();
63
64
  return;
64
65
  }
65
- saveOldParams();
66
66
  if (onCancel) {
67
67
  return onCancel === null || onCancel === void 0 ? void 0 : onCancel();
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.10.95",
3
+ "version": "1.10.96",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -59,11 +59,11 @@ const Index: React.FC<DialogFormProps> = ({
59
59
  afterClose,
60
60
  });
61
61
  const cancel = () => {
62
+ saveOldParams();
62
63
  if (dialogForm) {
63
64
  dialogForm.hide();
64
65
  return;
65
66
  }
66
- saveOldParams();
67
67
  if (onCancel) {
68
68
  return onCancel?.();
69
69
  }
@@ -55,11 +55,11 @@ const Index: React.FC<DialogFormProps> = ({
55
55
  autoClear,
56
56
  });
57
57
  const cancel = () => {
58
+ saveOldParams();
58
59
  if (dialogForm) {
59
60
  dialogForm.hide();
60
61
  return;
61
62
  }
62
- saveOldParams();
63
63
  if (onCancel) {
64
64
  return onCancel?.();
65
65
  }
@@ -69,10 +69,6 @@ export default () => {
69
69
  afterClose={() => {
70
70
  console.log("afterClose");
71
71
  }}
72
- contentRender={(node) => {
73
- console.log("contentRender");
74
- return <div>{node}</div>;
75
- }}
76
72
  title={
77
73
  <div
78
74
  onClick={() => {
@@ -69,6 +69,7 @@ export default () => {
69
69
  <HModalForm
70
70
  configData={data}
71
71
  visible={visible}
72
+ autoClear={false}
72
73
  onCancel={() => {
73
74
  console.log("fffff");
74
75
  setVisible(false);