@hzab/flowlong-designer 0.2.1 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # @hzab/flowlong-designer@0.2.3
2
+
3
+ fix:条件节点去除下拉数据不包含
4
+
5
+ # @hzab/flowlong-designer@0.2.2
6
+
7
+ fix:其他条件文案修改
8
+
1
9
  # @hzab/flowlong-designer@0.2.1
2
10
 
3
11
  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.3",
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">
@@ -18,7 +18,7 @@ export const operatorOptions = [
18
18
  { label: "小于", value: "<" },
19
19
  { label: "小于等于", value: "<=" },
20
20
  { label: "包含", value: "include" },
21
- { label: "不包含", value: "notinclude" },
21
+ // { label: "不包含", value: "notinclude" },
22
22
  ];
23
23
 
24
24
  /**描述下拉字段 */
@@ -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
  }
@@ -232,7 +235,7 @@ export const Branch = (props) => {
232
235
  { label: "小于", value: "<" },
233
236
  { label: "小于等于", value: "<=" },
234
237
  { label: "包含", value: "include" },
235
- { label: "不包含", value: "notinclude" },
238
+ // { label: "不包含", value: "notinclude" },
236
239
  ];
237
240
 
238
241
  if (timeType.includes(condition?.field)) {
@@ -251,7 +254,7 @@ export const Branch = (props) => {
251
254
  operatorOptions = [
252
255
  { label: "等于", value: "==" },
253
256
  { label: "包含", value: "include" },
254
- { label: "不包含", value: "notinclude" },
257
+ // { label: "不包含", value: "notinclude" },
255
258
  ];
256
259
  }
257
260
  if (condition?.label === "发起人") {