lyflowchart 1.0.57 → 1.0.58

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.js CHANGED
@@ -34621,12 +34621,13 @@ const Tn = {
34621
34621
  value: j
34622
34622
  };
34623
34623
  }, b = () => {
34624
+ var I, D;
34624
34625
  if ((o == null ? void 0 : o.$type) != "bpmn:SequenceFlow") {
34625
34626
  console.log("常规信息:该节点不是“顺序流”,跳过不处理表达式");
34626
34627
  return;
34627
34628
  }
34628
- if ((o == null ? void 0 : o.$type) == "bpmn:SequenceFlow" && !o.body) {
34629
- r.value = "其他", t("updateFlowType", r.value);
34629
+ if ((o == null ? void 0 : o.$type) == "bpmn:SequenceFlow") {
34630
+ o.body = ((D = (I = n.element.businessObject) == null ? void 0 : I.conditionExpression) == null ? void 0 : D.body) || "", o.name == "通过" || o.body.indexOf("通过") > -1 ? r.value = "通过" : o.name == "拒绝" || o.body.indexOf("拒绝") > -1 ? r.value = "拒绝" : r.value = "其他", t("updateFlowType", r.value);
34630
34631
  return;
34631
34632
  }
34632
34633
  const w = o.body, C = y(w);