@hzab/flowlong-designer 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # @hzab/flowlong-designer@0.2.2
2
+
3
+ fix:其他条件文案修改
4
+
1
5
  # @hzab/flowlong-designer@0.2.1
2
6
 
3
7
  fix:审批人详情
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/flowlong-designer",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "自定义审批流配置组件",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -60,7 +60,7 @@ export const typeDataEnum = {
60
60
  conditionList: [],
61
61
  },
62
62
  {
63
- nodeName: "条件2",
63
+ nodeName: "其他条件",
64
64
  nodeKey: getNodeKey(),
65
65
  type: 3,
66
66
  priorityLevel: 2,
@@ -104,7 +104,7 @@ export const AddNode = (props) => {
104
104
  <Popover
105
105
  open={disable ? false : undefined}
106
106
  className="popover"
107
- trigger="click"
107
+ trigger="focus"
108
108
  placement="bottom"
109
109
  content={
110
110
  <div className="add-node-popover-body">
@@ -81,8 +81,11 @@ export const Branch = (props) => {
81
81
  nodeConfig.conditionNodes = swapLastTwo(nodeConfig.conditionNodes);
82
82
 
83
83
  nodeConfig.conditionNodes.forEach((el, index) => {
84
- el.priorityLevel = index;
84
+ el.priorityLevel = index + 1;
85
85
  el.nodeName = el.nodeName ? el.nodeName : "条件" + (index + 1);
86
+ if (index === nodeConfig.conditionNodes.length - 1) {
87
+ el.nodeName = "其他条件";
88
+ }
86
89
  });
87
90
  onChange && onChange({ ...nodeConfig });
88
91
  }