@byteluck-fe/model-driven-engine 2.8.2-beta.3 → 2.8.2-beta.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.
|
@@ -237,9 +237,10 @@ export var ActionManager = /*#__PURE__*/ function() {
|
|
|
237
237
|
e = _state.sent();
|
|
238
238
|
// 执行的时候不使用throw error,而是使用console.error,避免阻塞内置代码的执行
|
|
239
239
|
logerror("".concat(action.id, " Exception during calling action: ").concat(e));
|
|
240
|
+
//尤其是在表单提交前事件异常,不能默认允许它通过。
|
|
240
241
|
return [
|
|
241
|
-
|
|
242
|
-
|
|
242
|
+
2,
|
|
243
|
+
false
|
|
243
244
|
];
|
|
244
245
|
case 4:
|
|
245
246
|
return [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CONTROL_BASE_TYPE, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
|
|
2
2
|
export function hasChildrenControl(instance) {
|
|
3
|
-
return instance.controlType === CONTROL_BASE_TYPE.LAYOUT || instance.controlType === CONTROL_BASE_TYPE.WRAP || instance.controlType === CONTROL_BASE_TYPE.LIST || instance.controlType === CONTROL_BASE_TYPE.SEARCH;
|
|
3
|
+
return instance.controlType === CONTROL_BASE_TYPE.LAYOUT || instance.controlType === CONTROL_BASE_TYPE.WRAP || instance.controlType === CONTROL_BASE_TYPE.LIST || instance.controlType === CONTROL_BASE_TYPE.SEARCH || instance.controlType === CONTROL_BASE_TYPE.COLUMN && instance.type !== CONTROL_TYPE.OPERATION_COLUMN;
|
|
4
4
|
}
|
|
5
5
|
export function loopFormControl(control, callback) {
|
|
6
6
|
if (Array.isArray(control)) {
|