@giteeteam/apps-team-components 1.2.2-alpha.2 → 1.2.2-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.
@@ -426,9 +426,13 @@ export function checkTransition(item, transition, permissions, flowHandlerActive
426
426
  const conditionList = [roleCheck, conditionCheck];
427
427
  const notEmpty = conditionList.filter(item => !item.isEmpty);
428
428
  if ((notEmpty === null || notEmpty === void 0 ? void 0 : notEmpty.length) > 0) {
429
- const [notEmptyCondition] = notEmpty;
430
- if (!notEmptyCondition.result) {
431
- return notEmptyCondition;
429
+ const hasPass = notEmpty.find(item => item.result);
430
+ if (hasPass) {
431
+ return { result: true };
432
+ }
433
+ else {
434
+ const notPass = notEmpty.find(item => !item.result);
435
+ return notPass;
432
436
  }
433
437
  }
434
438
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.2.2-alpha.2",
3
+ "version": "1.2.2-alpha.3",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",