@hzab/flowlong-designer 0.0.3 → 0.0.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,5 +1,15 @@
1
+ # @hzab/flowlong-designer@0.0.4
2
+
3
+ 条件选择数据兼容
4
+
5
+ # @hzab/flowlong-designer@0.0.3
6
+
7
+ 完善类型选择、抛出值
8
+
1
9
  # @hzab/flowlong-designer@0.0.2
10
+
2
11
  重构人员选择
3
12
 
4
13
  # @hzab/flowlong-designer@0.0.1
14
+
5
15
  组件初始化
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/flowlong-designer",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "自定义审批流配置组件",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -100,10 +100,10 @@ export const Branch = (props) => {
100
100
  .map((conditionGroup) =>
101
101
  conditionGroup.map((item) => {
102
102
  if (item?.field === "dept") {
103
- return `${item.label}${item.operator}${item.value?.map((el) => el?.label)}`;
103
+ return `${item.label}${item.operator}${item.values?.map((el) => el?.label)}`;
104
104
  }
105
105
  if (item?.field === "useId") {
106
- return `${item.label}${item.operator}${item.value?.map((el) => el?.userName)}`;
106
+ return `${item.label}${item.operator}${item.values?.map((el) => el?.userName)}`;
107
107
  }
108
108
  return `${item.label}${item.operator}${item.value}`;
109
109
  }),
@@ -380,10 +380,11 @@ export const Branch = (props) => {
380
380
  className="condition-content-box-item"
381
381
  ></Select>
382
382
  <Field
383
- value={condition.value}
383
+ value={condition?.values || []}
384
384
  type={condition.field}
385
385
  onChange={(e) => {
386
- condition.value = e;
386
+ condition.value = e?.map((item) => item?.value)?.join(",");
387
+ condition.values = e;
387
388
  // 更新数据
388
389
  setForm((f) => ({ ...f }));
389
390
  }}