@bit-sun/business-component 3.2.4-alpha.2 → 3.2.4-alpha.3
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.
package/dist/index.esm.js
CHANGED
|
@@ -35628,8 +35628,8 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
35628
35628
|
if (requiredList.some(function (r) {
|
|
35629
35629
|
return r.id === e.elementId;
|
|
35630
35630
|
})) {
|
|
35631
|
-
var _e$params;
|
|
35632
|
-
var isComplete = !!(e === null || e === void 0 ? void 0 : (_e$params = e.params) === null || _e$params === void 0 ? void 0 : _e$params.length);
|
|
35631
|
+
var _e$params, _e$params2;
|
|
35632
|
+
var isComplete = !!(e === null || e === void 0 ? void 0 : (_e$params = e.params) === null || _e$params === void 0 ? void 0 : _e$params.length) && isNoEmpty(e === null || e === void 0 ? void 0 : (_e$params2 = e.params) === null || _e$params2 === void 0 ? void 0 : _e$params2[0]);
|
|
35633
35633
|
if (!isComplete) {
|
|
35634
35634
|
checkResult = true;
|
|
35635
35635
|
// 如果 e.elementName 不存在于 checkInfo 中,则添加
|
|
@@ -36107,7 +36107,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36107
36107
|
setTimeout(function () {
|
|
36108
36108
|
modal.destroy();
|
|
36109
36109
|
}, 10000);
|
|
36110
|
-
return;
|
|
36110
|
+
return Promise.reject();
|
|
36111
36111
|
}
|
|
36112
36112
|
// setLoading(true);
|
|
36113
36113
|
// 兼容没有规则组的情况
|
package/dist/index.js
CHANGED
|
@@ -35651,8 +35651,8 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
35651
35651
|
if (requiredList.some(function (r) {
|
|
35652
35652
|
return r.id === e.elementId;
|
|
35653
35653
|
})) {
|
|
35654
|
-
var _e$params;
|
|
35655
|
-
var isComplete = !!(e === null || e === void 0 ? void 0 : (_e$params = e.params) === null || _e$params === void 0 ? void 0 : _e$params.length);
|
|
35654
|
+
var _e$params, _e$params2;
|
|
35655
|
+
var isComplete = !!(e === null || e === void 0 ? void 0 : (_e$params = e.params) === null || _e$params === void 0 ? void 0 : _e$params.length) && isNoEmpty(e === null || e === void 0 ? void 0 : (_e$params2 = e.params) === null || _e$params2 === void 0 ? void 0 : _e$params2[0]);
|
|
35656
35656
|
if (!isComplete) {
|
|
35657
35657
|
checkResult = true;
|
|
35658
35658
|
// 如果 e.elementName 不存在于 checkInfo 中,则添加
|
|
@@ -36130,7 +36130,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
36130
36130
|
setTimeout(function () {
|
|
36131
36131
|
modal.destroy();
|
|
36132
36132
|
}, 10000);
|
|
36133
|
-
return;
|
|
36133
|
+
return Promise.reject();
|
|
36134
36134
|
}
|
|
36135
36135
|
// setLoading(true);
|
|
36136
36136
|
// 兼容没有规则组的情况
|
package/package.json
CHANGED
|
@@ -209,7 +209,7 @@ export const handleRuleRequireCheck = (saveData: any, ruleActionData: any, ruleR
|
|
|
209
209
|
coverExpressionTree?.length &&
|
|
210
210
|
coverExpressionTree?.forEach?.((e: any) => {
|
|
211
211
|
if (requiredList.some((r: any) => r.id === e.elementId)) {
|
|
212
|
-
const isComplete = !!e?.params?.length;
|
|
212
|
+
const isComplete = !!e?.params?.length && isNoEmpty(e?.params?.[0]);
|
|
213
213
|
if (!isComplete) {
|
|
214
214
|
checkResult = true;
|
|
215
215
|
// 如果 e.elementName 不存在于 checkInfo 中,则添加
|