@hw-component/form 1.2.7 → 1.2.9

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,
@@ -29,7 +29,6 @@ var useProps = function useProps(_ref) {
29
29
  }
30
30
  });
31
31
  var defaultExFiles = exFiles === undefined ? resultProps.exFiles : exFiles;
32
- console.log(defaultExFiles);
33
32
  return _objectSpread(_objectSpread({}, resultProps), {}, {
34
33
  exFiles: defaultExFiles
35
34
  });
@@ -98,7 +98,7 @@ var Index = function Index(_ref, ref) {
98
98
  },
99
99
  status: "done",
100
100
  uid: "init-".concat(index),
101
- thumbUrl: url
101
+ thumbUrl: thumbUrl || url
102
102
  };
103
103
  });
104
104
  return _defineProperty({}, name, fileList);
@@ -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,
@@ -30,7 +30,6 @@ var useProps = function useProps(_ref) {
30
30
  }
31
31
  });
32
32
  var defaultExFiles = exFiles === undefined ? resultProps.exFiles : exFiles;
33
- console.log(defaultExFiles);
34
33
  return _objectSpread(_objectSpread({}, resultProps), {}, {
35
34
  exFiles: defaultExFiles
36
35
  });
@@ -101,7 +101,7 @@ var Index = function Index(_ref, ref) {
101
101
  },
102
102
  status: "done",
103
103
  uid: "init-".concat(index),
104
- thumbUrl: url
104
+ thumbUrl: thumbUrl || url
105
105
  };
106
106
  });
107
107
  return _defineProperty({}, name, fileList);
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.9",
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();
@@ -16,7 +16,6 @@ export const useProps = ({ request, exFiles, maxSize }: IUpLoadProps) => {
16
16
  }
17
17
  });
18
18
  const defaultExFiles=exFiles===undefined?resultProps.exFiles:exFiles;
19
- console.log(defaultExFiles)
20
19
  return {
21
20
  ...resultProps,
22
21
  exFiles:defaultExFiles
@@ -73,7 +73,7 @@ const Index: React.ForwardRefRenderFunction<IUploadRefModal, IUpLoadProps> = (
73
73
  },
74
74
  status: "done",
75
75
  uid: `init-${index}`,
76
- thumbUrl: url,
76
+ thumbUrl: thumbUrl||url,
77
77
  };
78
78
  });
79
79
  return {
@@ -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
  },