@cloud-app-dev/vidc 1.0.50 → 1.0.51

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.
@@ -5,6 +5,7 @@ interface IGroupListProps {
5
5
  checkedKeys: string[];
6
6
  keywords?: string;
7
7
  onChecked: (ids: string[]) => void;
8
+ title: string;
8
9
  }
9
- declare function GroupList({ list, onKeywordChange, onChecked, checkedKeys }: IGroupListProps): JSX.Element;
10
+ declare function GroupList({ list, onKeywordChange, onChecked, checkedKeys, title }: IGroupListProps): JSX.Element;
10
11
  export default GroupList;
@@ -7,12 +7,13 @@ function GroupList(_ref) {
7
7
  var list = _ref.list,
8
8
  onKeywordChange = _ref.onKeywordChange,
9
9
  onChecked = _ref.onChecked,
10
- checkedKeys = _ref.checkedKeys;
10
+ checkedKeys = _ref.checkedKeys,
11
+ title = _ref.title;
11
12
  return /*#__PURE__*/React.createElement("div", {
12
13
  className: "lm-c-check-list-wrapper vidc-list-component post-group-list"
13
14
  }, /*#__PURE__*/React.createElement(TreeTitle, {
14
15
  titleExt: false,
15
- title: "\u5DF2\u6DFB\u52A0(".concat(list.length, ")\u4E2A"),
16
+ title: title,
16
17
  inputPlaceholder: "\u8BF7\u8F93\u5165\u5C97\u4F4D\u540D\u79F0",
17
18
  onChange: onKeywordChange
18
19
  }), /*#__PURE__*/React.createElement("div", {
@@ -156,7 +156,8 @@ function GroupSelectModalContent(_ref, ref) {
156
156
  });
157
157
  },
158
158
  keywords: state.keyword1,
159
- onChecked: onUserChecked1
159
+ onChecked: onUserChecked1,
160
+ title: "\u5C97\u4F4D\u5217\u8868"
160
161
  }), /*#__PURE__*/React.createElement(GroupList, {
161
162
  list: renderList,
162
163
  checkedKeys: state.selectIds,
@@ -168,7 +169,8 @@ function GroupSelectModalContent(_ref, ref) {
168
169
  });
169
170
  },
170
171
  keywords: state.keyword2,
171
- onChecked: onUserChecked2
172
+ onChecked: onUserChecked2,
173
+ title: "\u5DF2\u6DFB\u52A0\uFF08".concat(state.selectIds.length, "\uFF09")
172
174
  }));
173
175
  }
174
176
 
@@ -48,6 +48,10 @@ export function createUserTask(xml, node, pids, stopId) {
48
48
 
49
49
  multiInstanceLoopCharacteristics.setAttribute('camunda:collection', "assigneeList_".concat(node.id));
50
50
  multiInstanceLoopCharacteristics.setAttribute('camunda:elementVariable', "users_".concat(node.id));
51
+ var completionCondition = xml.createElement('bpmn:completionCondition');
52
+ completionCondition.setAttribute('xsi:type', 'bpmn:tFormalExpression');
53
+ completionCondition.innerHTML = '${!dealBlank}';
54
+ multiInstanceLoopCharacteristics.appendChild(completionCondition);
51
55
  userTask.appendChild(multiInstanceLoopCharacteristics);
52
56
  }
53
57
 
@@ -70,8 +70,17 @@ function WorkerFlow(_ref, ref) {
70
70
 
71
71
  var updateNode = function updateNode() {
72
72
  return setConfig(Object.assign({}, config));
73
- }; // 链表操作: 几种行为, 添加行为,删除行为,点击行为 pRef.childNode -> node.childNode -> 后继
74
- // 添加节点
73
+ };
74
+ /**
75
+ * @mate 节点函数介绍
76
+ * @description 链表操作: 几种行为, 添加行为,删除行为,点击行为 pRef.childNode -> node.childNode -> 后继
77
+ */
78
+
79
+ /**
80
+ * @description 添加节点
81
+ * @param type
82
+ * @param node
83
+ */
75
84
 
76
85
 
77
86
  function onInsertNode(type, node) {
@@ -114,7 +123,15 @@ function WorkerFlow(_ref, ref) {
114
123
  }
115
124
 
116
125
  updateNode();
117
- } // 删除节点
126
+ }
127
+ /**
128
+ * @description 删除节点的操作
129
+ * @param parentNode
130
+ * @param node
131
+ * @param type
132
+ * @param index
133
+ * @returns
134
+ */
118
135
 
119
136
 
120
137
  function onDeleteNode(parentNode, node, type, index) {
@@ -164,7 +181,14 @@ function WorkerFlow(_ref, ref) {
164
181
  modal.confirm(Object.assign(Object.assign({}, options), {
165
182
  onOk: onOk
166
183
  }));
167
- } // 获取节点
184
+ }
185
+ /**
186
+ * @description 选中节点操作
187
+ * @param node
188
+ * @param parentNode
189
+ * @param index
190
+ * @returns
191
+ */
168
192
 
169
193
 
170
194
  function onSelectNode(node, parentNode, index) {
@@ -263,12 +287,17 @@ function WorkerFlow(_ref, ref) {
263
287
  useFormKeys: useFormKeys
264
288
  };
265
289
  }, [config]);
290
+ /**
291
+ * @description onChange传递数据
292
+ */
266
293
 
267
294
  _useChangeEffect(function () {
268
- if (onChange) {
269
- onChange(getConfig());
270
- }
295
+ return onChange && onChange(getConfig());
271
296
  }, [config]);
297
+ /**
298
+ * @description ref传递数据
299
+ */
300
+
272
301
 
273
302
  useImperativeHandle(ref, function () {
274
303
  return {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "1.0.50",
5
+ "version": "1.0.51",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",