@hw-component/form 1.2.7 → 1.2.8

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.
@@ -27,9 +27,9 @@ var DrawerForm = (function (_ref) {
27
27
  onCancel = _ref.onCancel,
28
28
  configData = _ref.configData,
29
29
  infoRequest = _ref.infoRequest,
30
- request = _ref.request;
31
- _ref.afterClose;
32
- var dialogForm = _ref.dialogForm,
30
+ request = _ref.request,
31
+ afterClose = _ref.afterClose,
32
+ dialogForm = _ref.dialogForm,
33
33
  _ref$closable = _ref.closable,
34
34
  closable = _ref$closable === void 0 ? true : _ref$closable,
35
35
  initialValues = _ref.initialValues,
@@ -55,7 +55,8 @@ var DrawerForm = (function (_ref) {
55
55
  params: params,
56
56
  title: title,
57
57
  onCancel: onCancel,
58
- autoClear: autoClear
58
+ autoClear: autoClear,
59
+ afterClose: afterClose
59
60
  }),
60
61
  modalVisible = _useModifyProps.modalVisible,
61
62
  modalFormData = _useModifyProps.modalFormData,
@@ -30,9 +30,9 @@ var DrawerForm = (function (_ref) {
30
30
  onCancel = _ref.onCancel,
31
31
  configData = _ref.configData,
32
32
  infoRequest = _ref.infoRequest,
33
- request = _ref.request;
34
- _ref.afterClose;
35
- var dialogForm = _ref.dialogForm,
33
+ request = _ref.request,
34
+ afterClose = _ref.afterClose,
35
+ dialogForm = _ref.dialogForm,
36
36
  _ref$closable = _ref.closable,
37
37
  closable = _ref$closable === void 0 ? true : _ref$closable,
38
38
  initialValues = _ref.initialValues,
@@ -58,7 +58,8 @@ var DrawerForm = (function (_ref) {
58
58
  params: params,
59
59
  title: title,
60
60
  onCancel: onCancel,
61
- autoClear: autoClear
61
+ autoClear: autoClear,
62
+ afterClose: afterClose
62
63
  }),
63
64
  modalVisible = _useModifyProps.modalVisible,
64
65
  modalFormData = _useModifyProps.modalFormData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -49,6 +49,7 @@ export default ({
49
49
  title,
50
50
  onCancel,
51
51
  autoClear,
52
+ afterClose
52
53
  });
53
54
  const cancel = () => {
54
55
  onAfterClose();
@@ -139,6 +139,9 @@ export default () => {
139
139
  labelWidth={88}
140
140
  labelAlign={"left"}
141
141
  dialogForm={modalForm}
142
+ afterClose={()=>{
143
+ console.log("afterClose")
144
+ }}
142
145
  title="测试"
143
146
  />
144
147
  </>
@@ -38,7 +38,9 @@ const formData = (options) => {
38
38
  name: "rangePicker",
39
39
  itemProps: {
40
40
  subProvider: () => {
41
- console.log("fff");
41
+ return {
42
+ hdj:"fff"
43
+ }
42
44
  },
43
45
  },
44
46
  },