@cloud-app-dev/vidc 1.0.47 → 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.
- package/.umirc.ts +1 -1
- package/README.md +4 -0
- package/es/AppLayout/Header/ModifyUserAvatar/index.css +4 -0
- package/es/AppLayout/Header/ModifyUserAvatar/index.js +2 -3
- package/es/AutoExit/index.d.ts +1 -1
- package/es/OrgTree/index.js +1 -2
- package/es/OrgUserTree/index.js +1 -2
- package/es/PlaceTree/index.js +1 -2
- package/es/RefDrawer/index.d.ts +2 -2
- package/es/RefModal/index.d.ts +2 -2
- package/es/TreeMode/index.js +1 -2
- package/es/WorkerFlow/Demo.js +1 -0
- package/es/WorkerFlow/Form/Condition.js +8 -8
- package/es/WorkerFlow/Form/GroupList.d.ts +2 -1
- package/es/WorkerFlow/Form/GroupList.js +3 -2
- package/es/WorkerFlow/Form/GroupSelectModalContent.js +4 -2
- package/es/WorkerFlow/Form/UserSet.js +1 -6
- package/es/WorkerFlow/Nodes/TitleElement.js +13 -6
- package/es/WorkerFlow/XML/UserTask.js +4 -0
- package/es/WorkerFlow/index.js +40 -8
- package/es/WorkerFlow/utils.js +1 -1
- package/package.json +3 -3
package/.umirc.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { defineConfig } from 'dumi';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
|
|
4
4
|
const token =
|
|
5
|
-
'eyJhbGciOiJIUzI1NiJ9.
|
|
5
|
+
'eyJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb25JZCI6IjEwMDEwMTAwMDQ0NiIsImV4dCI6MTYzODY4NzgyNzEwNywidWlkIjoiMTAxMDAwMDAwMjQ5IiwidmFsaWRTdGF0ZSI6MTA0NDA2LCJyb2xlSWQiOlsxMDAwMDAxMTAzODddLCJ2YWxpZFRpbWUiOm51bGwsIm9wdENlbnRlcklkIjoiMTAwMTAwMDAwMjMzIiwidXNlclR5cGUiOjEwMDcwMiwiaWF0IjoxNjM4NDI4NjI3MTA3fQ.eEvUc9_eGBdUi2QCMDNjOYgTzTKwiLX-7DEQ_O9kjhs';
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
title: '云应用-业务组件库',
|
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
|
|
2
2
|
import _ImageView from "@cloud-app-dev/basic-components/es/ImageView";
|
|
3
|
-
import _CBox from "@cloud-app-dev/basic-components/es/CBox";
|
|
4
3
|
import _ContentBox from "@cloud-app-dev/basic-components/es/ContentBox";
|
|
5
4
|
import _Drawer from "@cloud-app-dev/basic-components/es/Drawer";
|
|
6
5
|
import "antd/lib/message/style";
|
|
@@ -82,11 +81,11 @@ function ModifyUserAvatar(_ref) {
|
|
|
82
81
|
className: "user-avatar-upload"
|
|
83
82
|
}, /*#__PURE__*/React.createElement(FormUpload, {
|
|
84
83
|
customUpload: uploadImg
|
|
85
|
-
}, userAvatarUrl ? /*#__PURE__*/React.createElement(
|
|
84
|
+
}, userAvatarUrl ? /*#__PURE__*/React.createElement("div", {
|
|
86
85
|
className: "lm-upload-content"
|
|
87
86
|
}, /*#__PURE__*/React.createElement(_ImageView, {
|
|
88
87
|
src: userAvatarUrl
|
|
89
|
-
})) : /*#__PURE__*/React.createElement(
|
|
88
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
|
90
89
|
className: "lm-upload-content lm-c-normol-box"
|
|
91
90
|
}, /*#__PURE__*/React.createElement(_IconFont, {
|
|
92
91
|
type: "icon-L_Bar_AddImg"
|
package/es/AutoExit/index.d.ts
CHANGED
package/es/OrgTree/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2
2
|
|
|
3
|
-
import _CBox from "@cloud-app-dev/basic-components/es/CBox";
|
|
4
3
|
import _Tree from "@cloud-app-dev/basic-components/es/Tree";
|
|
5
4
|
import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
|
|
6
5
|
import _Store from "@cloud-app-dev/basic-components/es/Store";
|
|
@@ -133,7 +132,7 @@ var OrgTree = /*#__PURE__*/function (_React$Component) {
|
|
|
133
132
|
props = _objectWithoutProperties(_this$props3, _excluded);
|
|
134
133
|
|
|
135
134
|
var expandedKeys = this.state.expandedKeys;
|
|
136
|
-
return /*#__PURE__*/React.createElement(
|
|
135
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
137
136
|
className: "lm-organization-tree ".concat(className)
|
|
138
137
|
}, title ? /*#__PURE__*/React.createElement(TreeTitle, {
|
|
139
138
|
title: title,
|
package/es/OrgUserTree/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
|
|
2
2
|
import _Tree from "@cloud-app-dev/basic-components/es/Tree";
|
|
3
|
-
import _CBox from "@cloud-app-dev/basic-components/es/CBox";
|
|
4
3
|
import _treeHelper from "@cloud-app-dev/utils/es/treeHelper";
|
|
5
4
|
import _useHttp2 from "@cloud-app-dev/basic-components/es/useHttp";
|
|
6
5
|
|
|
@@ -87,7 +86,7 @@ function OrgUserTree(_a) {
|
|
|
87
86
|
onDefailtSelect(treeData[0].id);
|
|
88
87
|
}
|
|
89
88
|
}, [treeData]);
|
|
90
|
-
return /*#__PURE__*/React.createElement(
|
|
89
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
91
90
|
className: "bc-org-user-tree-layout ".concat(className)
|
|
92
91
|
}, title ? /*#__PURE__*/React.createElement(TreeTitle, {
|
|
93
92
|
title: title,
|
package/es/PlaceTree/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
|
|
2
2
|
import _Tree from "@cloud-app-dev/basic-components/es/Tree";
|
|
3
|
-
import _CBox from "@cloud-app-dev/basic-components/es/CBox";
|
|
4
3
|
import _Store from "@cloud-app-dev/basic-components/es/Store";
|
|
5
4
|
import _treeHelper from "@cloud-app-dev/utils/es/treeHelper";
|
|
6
5
|
|
|
@@ -124,7 +123,7 @@ function PlaceTree(params) {
|
|
|
124
123
|
});
|
|
125
124
|
});
|
|
126
125
|
}, [keyword]);
|
|
127
|
-
return /*#__PURE__*/React.createElement(
|
|
126
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
128
127
|
className: "lm-c-place-tree ".concat(className)
|
|
129
128
|
}, /*#__PURE__*/React.createElement(TreeTitle, {
|
|
130
129
|
title: title,
|
package/es/RefDrawer/index.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export interface IUseDrawerHookState {
|
|
|
7
7
|
width?: number | string;
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface IRefDrawerMethodsProps {
|
|
11
11
|
open: (options: IUseDrawerHookState) => void;
|
|
12
12
|
close: () => void;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<
|
|
14
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IRefDrawerMethodsProps>>;
|
|
15
15
|
export default _default;
|
package/es/RefModal/index.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export interface IUseModalHookState {
|
|
|
7
7
|
width?: number | string;
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface IRefModalMethodsProps {
|
|
11
11
|
open: (options: IUseModalHookState) => void;
|
|
12
12
|
close: () => void;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<
|
|
14
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IRefModalMethodsProps>>;
|
|
15
15
|
export default _default;
|
package/es/TreeMode/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
|
|
2
2
|
import _Tree from "@cloud-app-dev/basic-components/es/Tree";
|
|
3
|
-
import _CBox from "@cloud-app-dev/basic-components/es/CBox";
|
|
4
3
|
import _treeHelper from "@cloud-app-dev/utils/es/treeHelper";
|
|
5
4
|
import _useHttp2 from "@cloud-app-dev/basic-components/es/useHttp";
|
|
6
5
|
|
|
@@ -153,7 +152,7 @@ function TreeMode(_a) {
|
|
|
153
152
|
onDefailtSelect(id);
|
|
154
153
|
}
|
|
155
154
|
}, [treeData, treeKey]);
|
|
156
|
-
return /*#__PURE__*/React.createElement(
|
|
155
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
157
156
|
className: "bc-type-tree-layout ".concat(className)
|
|
158
157
|
}, /*#__PURE__*/React.createElement(TreeTitle, {
|
|
159
158
|
title: title,
|
package/es/WorkerFlow/Demo.js
CHANGED
|
@@ -4,7 +4,6 @@ import "antd/lib/button/style";
|
|
|
4
4
|
import _Button from "antd/lib/button";
|
|
5
5
|
import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
|
|
6
6
|
import _ContentBox from "@cloud-app-dev/basic-components/es/ContentBox";
|
|
7
|
-
import _useChangeEffect from "@cloud-app-dev/basic-components/es/useChangeEffect";
|
|
8
7
|
|
|
9
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
9
|
|
|
@@ -18,20 +17,23 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
18
17
|
|
|
19
18
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
19
|
|
|
21
|
-
import React, { useCallback, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
20
|
+
import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
22
21
|
import RefModal from '../../RefModal';
|
|
23
22
|
|
|
24
23
|
function ConditionForm(_ref) {
|
|
25
24
|
var form = _ref.form,
|
|
26
25
|
item = _ref.item,
|
|
27
26
|
onChange = _ref.onChange,
|
|
28
|
-
|
|
27
|
+
_ref$useConditionFiel = _ref.useConditionFields,
|
|
28
|
+
useConditionFields = _ref$useConditionFiel === void 0 ? [] : _ref$useConditionFiel;
|
|
29
29
|
|
|
30
30
|
var _a, _b;
|
|
31
31
|
|
|
32
|
+
console.log(item, useConditionFields);
|
|
33
|
+
|
|
32
34
|
var _useState = useState({
|
|
33
|
-
field: (
|
|
34
|
-
value: ((_b = item === null || item === void 0 ? void 0 : item.conditionList[0]) === null || _b === void 0 ? void 0 : _b.value
|
|
35
|
+
field: (item === null || item === void 0 ? void 0 : item.conditionList) ? (_a = item.conditionList[0]) === null || _a === void 0 ? void 0 : _a.field : '',
|
|
36
|
+
value: (item === null || item === void 0 ? void 0 : item.conditionList) ? (_b = item === null || item === void 0 ? void 0 : item.conditionList[0]) === null || _b === void 0 ? void 0 : _b.value : ''
|
|
35
37
|
}),
|
|
36
38
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37
39
|
state = _useState2[0],
|
|
@@ -103,8 +105,7 @@ function ConditionForm(_ref) {
|
|
|
103
105
|
};
|
|
104
106
|
});
|
|
105
107
|
}, []);
|
|
106
|
-
|
|
107
|
-
_useChangeEffect(function () {
|
|
108
|
+
useEffect(function () {
|
|
108
109
|
if (state.field !== undefined && state.value !== undefined && formItem) {
|
|
109
110
|
var conditionList = [{
|
|
110
111
|
field: state.field,
|
|
@@ -128,7 +129,6 @@ function ConditionForm(_ref) {
|
|
|
128
129
|
});
|
|
129
130
|
}
|
|
130
131
|
}, [state.field, state.value, formItem, options]);
|
|
131
|
-
|
|
132
132
|
return /*#__PURE__*/React.createElement(_ContentBox.InfoBox, {
|
|
133
133
|
title: "\u8BBE\u7F6E\u6761\u4EF6",
|
|
134
134
|
contentStyle: {
|
|
@@ -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:
|
|
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
|
|
|
@@ -170,15 +170,10 @@ function UserSelectType2(_ref3) {
|
|
|
170
170
|
_onChange3 = _ref3.onChange,
|
|
171
171
|
type = _ref3.type,
|
|
172
172
|
emptyUsers = _ref3.emptyUsers;
|
|
173
|
-
var userList = useMemo(function () {
|
|
174
|
-
return users.filter(function (v) {
|
|
175
|
-
return v.key === 'userId';
|
|
176
|
-
});
|
|
177
|
-
}, [users]);
|
|
178
173
|
return /*#__PURE__*/React.createElement("div", {
|
|
179
174
|
className: "user-select-type1"
|
|
180
175
|
}, /*#__PURE__*/React.createElement(UserAndGroupSelect, {
|
|
181
|
-
userList:
|
|
176
|
+
userList: users,
|
|
182
177
|
onChange: function onChange(users) {
|
|
183
178
|
return _onChange3(_defineProperty({}, type, users));
|
|
184
179
|
}
|
|
@@ -13,7 +13,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
13
13
|
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
|
|
16
|
-
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
|
16
|
+
import React, { useState, useEffect, useRef, useCallback, useContext } from 'react';
|
|
17
|
+
import WFC from '../OperatorContext';
|
|
17
18
|
|
|
18
19
|
function TitleElement(_ref) {
|
|
19
20
|
var nodeName = _ref.nodeName,
|
|
@@ -22,6 +23,9 @@ function TitleElement(_ref) {
|
|
|
22
23
|
icon = _ref.icon,
|
|
23
24
|
delNode = _ref.delNode;
|
|
24
25
|
|
|
26
|
+
var _useContext = useContext(WFC),
|
|
27
|
+
readOnly = _useContext.readOnly;
|
|
28
|
+
|
|
25
29
|
var _useState = useState(nodeName),
|
|
26
30
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
31
|
title = _useState2[0],
|
|
@@ -41,11 +45,11 @@ function TitleElement(_ref) {
|
|
|
41
45
|
}
|
|
42
46
|
}, [title, placeholder]);
|
|
43
47
|
useEffect(function () {
|
|
44
|
-
return editable && input.current.focus();
|
|
48
|
+
return !readOnly && editable && input.current.focus();
|
|
45
49
|
}, [editable]);
|
|
46
50
|
|
|
47
51
|
_useChangeEffect(function () {
|
|
48
|
-
!editable && onTitleChange && onTitleChange(title);
|
|
52
|
+
!readOnly && !editable && onTitleChange && onTitleChange(title);
|
|
49
53
|
}, [title, editable]);
|
|
50
54
|
|
|
51
55
|
return /*#__PURE__*/React.createElement(React.Fragment, null, icon && /*#__PURE__*/React.createElement(_IconFont, {
|
|
@@ -53,7 +57,7 @@ function TitleElement(_ref) {
|
|
|
53
57
|
style: {
|
|
54
58
|
paddingRight: 4
|
|
55
59
|
}
|
|
56
|
-
}), editable ? /*#__PURE__*/React.createElement("input", {
|
|
60
|
+
}), !readOnly && editable ? /*#__PURE__*/React.createElement("input", {
|
|
57
61
|
ref: input,
|
|
58
62
|
type: "text",
|
|
59
63
|
className: "cloudapp-input editable-title-input",
|
|
@@ -70,8 +74,11 @@ function TitleElement(_ref) {
|
|
|
70
74
|
className: "editable-title",
|
|
71
75
|
onClick: function onClick() {
|
|
72
76
|
return setEditable(true);
|
|
73
|
-
}
|
|
74
|
-
|
|
77
|
+
},
|
|
78
|
+
style: readOnly ? {
|
|
79
|
+
borderColor: 'transparent'
|
|
80
|
+
} : undefined
|
|
81
|
+
}, title), !readOnly && /*#__PURE__*/React.createElement(_IconFont, {
|
|
75
82
|
className: "worker-flow-node-del",
|
|
76
83
|
type: "icon-MarkNo",
|
|
77
84
|
onClick: delNode,
|
|
@@ -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
|
|
package/es/WorkerFlow/index.js
CHANGED
|
@@ -70,8 +70,17 @@ function WorkerFlow(_ref, ref) {
|
|
|
70
70
|
|
|
71
71
|
var updateNode = function updateNode() {
|
|
72
72
|
return setConfig(Object.assign({}, config));
|
|
73
|
-
};
|
|
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) {
|
|
@@ -207,9 +231,12 @@ function WorkerFlow(_ref, ref) {
|
|
|
207
231
|
}).includes(node.type)) {
|
|
208
232
|
var nodeName = node.type === 4 ? node.conditionNodes[index].nodeName : node.nodeName;
|
|
209
233
|
var FormContent = FormMap[node.type];
|
|
210
|
-
var
|
|
234
|
+
var fiels = node.type === 4 ? _toConsumableArray(node.conditionNodes.map(function (v) {
|
|
211
235
|
return v.id !== node.conditionNodes[index].id ? v.conditionList : [];
|
|
212
236
|
})).flat() : [];
|
|
237
|
+
var useConditionFields = fiels.filter(function (v) {
|
|
238
|
+
return !!v;
|
|
239
|
+
});
|
|
213
240
|
var nodeItem = node.type === 4 ? node.conditionNodes[index] : node;
|
|
214
241
|
var from = nodeItem.form ? form.map(function (v) {
|
|
215
242
|
return nodeItem.form.find(function (v2) {
|
|
@@ -260,12 +287,17 @@ function WorkerFlow(_ref, ref) {
|
|
|
260
287
|
useFormKeys: useFormKeys
|
|
261
288
|
};
|
|
262
289
|
}, [config]);
|
|
290
|
+
/**
|
|
291
|
+
* @description onChange传递数据
|
|
292
|
+
*/
|
|
263
293
|
|
|
264
294
|
_useChangeEffect(function () {
|
|
265
|
-
|
|
266
|
-
onChange(getConfig());
|
|
267
|
-
}
|
|
295
|
+
return onChange && onChange(getConfig());
|
|
268
296
|
}, [config]);
|
|
297
|
+
/**
|
|
298
|
+
* @description ref传递数据
|
|
299
|
+
*/
|
|
300
|
+
|
|
269
301
|
|
|
270
302
|
useImperativeHandle(ref, function () {
|
|
271
303
|
return {
|
package/es/WorkerFlow/utils.js
CHANGED
|
@@ -168,7 +168,7 @@ export function getUserFormKeys(data) {
|
|
|
168
168
|
var arr = [];
|
|
169
169
|
|
|
170
170
|
var fn = function fn(node) {
|
|
171
|
-
if (node.bpmnType == 'sequenceFlow') {
|
|
171
|
+
if (node.bpmnType == 'sequenceFlow' && node.conditionList) {
|
|
172
172
|
arr.push.apply(arr, _toConsumableArray(node.conditionList));
|
|
173
173
|
}
|
|
174
174
|
|
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.
|
|
5
|
+
"version": "1.0.51",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "dumi dev",
|
|
8
8
|
"docs:build": "dumi build",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"rc-queue-anim": "^2.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@cloud-app-dev/utils": "^2.0.
|
|
41
|
-
"@cloud-app-dev/basic-components": "^1.0.
|
|
40
|
+
"@cloud-app-dev/utils": "^2.0.2",
|
|
41
|
+
"@cloud-app-dev/basic-components": "^1.0.62",
|
|
42
42
|
"@types/chroma-js": "^2.1.3",
|
|
43
43
|
"@types/lodash": "^4.14.172",
|
|
44
44
|
"@umijs/test": "^3.0.5",
|