@guo514360255/antd-lib 1.6.0 → 1.6.1
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.
|
@@ -144,19 +144,20 @@ var CustomFormModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
144
144
|
}))();
|
|
145
145
|
},
|
|
146
146
|
getFormRef: function getFormRef() {
|
|
147
|
-
|
|
147
|
+
var _formRef$current2;
|
|
148
|
+
return (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.getFormRef();
|
|
148
149
|
}
|
|
149
150
|
};
|
|
150
151
|
});
|
|
151
152
|
var submitEvent = /*#__PURE__*/function () {
|
|
152
153
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
153
|
-
var _formRef$
|
|
154
|
+
var _formRef$current3;
|
|
154
155
|
var ref, _tableActionRef$curre, formData, data, result, _key;
|
|
155
156
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
156
157
|
while (1) switch (_context3.prev = _context3.next) {
|
|
157
158
|
case 0:
|
|
158
159
|
setLoading(true);
|
|
159
|
-
ref = (_formRef$
|
|
160
|
+
ref = (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.getFormRef();
|
|
160
161
|
_context3.prev = 2;
|
|
161
162
|
if (!(!updateRequest && !saveRequest)) {
|
|
162
163
|
_context3.next = 6;
|
|
@@ -230,9 +231,9 @@ var CustomFormModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
230
231
|
};
|
|
231
232
|
}();
|
|
232
233
|
var close = function close() {
|
|
233
|
-
var _formRef$
|
|
234
|
+
var _formRef$current4;
|
|
234
235
|
setOpen(false);
|
|
235
|
-
var ref = (_formRef$
|
|
236
|
+
var ref = (_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.getFormRef();
|
|
236
237
|
ref === null || ref === void 0 || ref.resetFields();
|
|
237
238
|
if (onSubmit) {
|
|
238
239
|
onSubmit();
|