@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
package/package.json
CHANGED
|
@@ -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
|
|
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) {
|