venus-design 1.0.46 → 1.0.48
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.
|
@@ -220,8 +220,38 @@ var VenusWorkDetail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
220
220
|
return validateBusinessForm;
|
|
221
221
|
}(),
|
|
222
222
|
getPageRef: function getPageRef() {
|
|
223
|
-
return formRef;
|
|
224
|
-
}
|
|
223
|
+
return formRef.current.getPageRef();
|
|
224
|
+
},
|
|
225
|
+
validateSubmitSuccess: function () {
|
|
226
|
+
var _validateSubmitSuccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
227
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
228
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
229
|
+
case 0:
|
|
230
|
+
if (!(formRef && formRef.current)) {
|
|
231
|
+
_context5.next = 6;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
_context5.next = 3;
|
|
235
|
+
return formRef.current.validateSubmitSuccess();
|
|
236
|
+
case 3:
|
|
237
|
+
_context5.t0 = _context5.sent;
|
|
238
|
+
_context5.next = 7;
|
|
239
|
+
break;
|
|
240
|
+
case 6:
|
|
241
|
+
_context5.t0 = true;
|
|
242
|
+
case 7:
|
|
243
|
+
return _context5.abrupt("return", _context5.t0);
|
|
244
|
+
case 8:
|
|
245
|
+
case "end":
|
|
246
|
+
return _context5.stop();
|
|
247
|
+
}
|
|
248
|
+
}, _callee5);
|
|
249
|
+
}));
|
|
250
|
+
function validateSubmitSuccess() {
|
|
251
|
+
return _validateSubmitSuccess.apply(this, arguments);
|
|
252
|
+
}
|
|
253
|
+
return validateSubmitSuccess;
|
|
254
|
+
}()
|
|
225
255
|
};
|
|
226
256
|
});
|
|
227
257
|
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
@@ -236,7 +266,7 @@ var VenusWorkDetail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
236
266
|
/*#__PURE__*/
|
|
237
267
|
//@ts-ignore
|
|
238
268
|
React.createElement(LoadableSub, _extends({}, props, {
|
|
239
|
-
|
|
269
|
+
ref: formRef
|
|
240
270
|
}, props.otherProps, {
|
|
241
271
|
innerId: getInnerIdByBusinessKey(props.businessKey)
|
|
242
272
|
})) : props.actionId == "adjust" ? props.batchFlag == true ? /*#__PURE__*/React.createElement(VenusAdjustBatch, {
|