@hzab/flowlong-designer 0.1.3 → 0.1.4

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,9 @@
1
+ # @hzab/flowlong-designer@0.1.4
2
+
3
+ fix:条件节点多个条件时删除正常渲染并正常排序
4
+ fix:审批人、抄送人支持正常删除
5
+ fix:领导审批显示多人审批时审批方式显示默认值
6
+
1
7
  # @hzab/flowlong-designer@0.1.3
2
8
 
3
9
  fix:条件节点正常删除
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/flowlong-designer",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "自定义审批流配置组件",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -34,7 +34,7 @@ export const typeDataEnum = {
34
34
  termAuto: false, //审批期限超时自动审批
35
35
  term: 0, //审批期限
36
36
  termMode: 1, //审批期限超时后执行类型
37
- examineMode: 1, //多人审批时审批方式
37
+ examineMode: 2, //多人审批时审批方式
38
38
  directorMode: 0, //连续主管审批方式
39
39
  },
40
40
  [NODE_TYPE.ccNode]: {
@@ -9,6 +9,7 @@
9
9
  position: relative;
10
10
  z-index: 1;
11
11
  }
12
+
12
13
  .node-wrap-box {
13
14
  display: inline-flex;
14
15
  flex-direction: column;
@@ -21,6 +22,7 @@
21
22
  cursor: pointer;
22
23
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
23
24
  }
25
+
24
26
  .node-wrap-box::before {
25
27
  content: "";
26
28
  position: absolute;
@@ -32,9 +34,11 @@
32
34
  border-width: 8px 6px 4px;
33
35
  border-color: rgb(202, 202, 202) transparent transparent;
34
36
  }
37
+
35
38
  .node-wrap-box.start-node:before {
36
39
  content: none;
37
40
  }
41
+
38
42
  .node-wrap-box .title {
39
43
  height: 24px;
40
44
  line-height: 24px;
@@ -46,9 +50,11 @@
46
50
  display: flex;
47
51
  align-items: center;
48
52
  }
53
+
49
54
  .node-wrap-box .title .icon {
50
55
  margin-right: 5px;
51
56
  }
57
+
52
58
  .node-wrap-box .title .node-close-btn {
53
59
  font-size: 15px;
54
60
  position: absolute;
@@ -57,16 +63,25 @@
57
63
  right: 10px;
58
64
  display: none;
59
65
  }
66
+
67
+ .node-wrap-box:hover {
68
+ .title .node-close-btn {
69
+ display: block;
70
+ }
71
+ }
72
+
60
73
  .node-wrap-box .content {
61
74
  position: relative;
62
75
  padding: 15px;
63
76
  }
77
+
64
78
  .node-wrap-box .content .placeholder {
65
79
  color: #999;
66
80
  }
67
81
  }
82
+
68
83
  .approver-drawer-footer {
69
- .ant-btn + .ant-btn {
84
+ .ant-btn+.ant-btn {
70
85
  margin-left: 12px;
71
86
  }
72
- }
87
+ }
@@ -91,6 +91,9 @@ export const Branch = (props) => {
91
91
 
92
92
  function onTermDel(idx) {
93
93
  nodeConfig.conditionNodes?.splice(idx, 1);
94
+ nodeConfig.conditionNodes?.forEach((item, index) => {
95
+ item.priorityLevel = index + 1;
96
+ });
94
97
  if (nodeConfig.conditionNodes?.length == 1) {
95
98
  if (nodeConfig.childNode) {
96
99
  if (nodeConfig.conditionNodes[0].childNode) {
@@ -100,6 +103,8 @@ export const Branch = (props) => {
100
103
  }
101
104
  }
102
105
  onChange && onChange(nodeConfig.conditionNodes[0].childNode);
106
+ } else {
107
+ onChange({ ...nodeConfig });
103
108
  }
104
109
  }
105
110
  function toText(nodeConfig, idx) {