@coding-flow/flow-design 0.0.34 → 0.0.37
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.
|
@@ -19,10 +19,6 @@ const SELECT_TYPE_OPTIONS = [
|
|
|
19
19
|
value: 'APPROVER_SELECT'
|
|
20
20
|
}
|
|
21
21
|
];
|
|
22
|
-
const SELECT_TYPE_LABEL_MAP = {
|
|
23
|
-
INITIATOR_SELECT: '发起人设定',
|
|
24
|
-
APPROVER_SELECT: '审批人设定'
|
|
25
|
-
};
|
|
26
22
|
const OperatorLoadStrategy = ()=>{
|
|
27
23
|
const [form] = Form.useForm();
|
|
28
24
|
const [visible, setVisible] = react.useState(false);
|
|
@@ -52,19 +48,14 @@ const OperatorLoadStrategy = ()=>{
|
|
|
52
48
|
/*#__PURE__*/ jsx(Field, {
|
|
53
49
|
name: "OperatorLoadStrategy.selectType",
|
|
54
50
|
render: ({ field: { value: selectType } })=>{
|
|
55
|
-
|
|
56
|
-
label: "当前操作人",
|
|
57
|
-
children: /*#__PURE__*/ jsx("span", {
|
|
58
|
-
children: SELECT_TYPE_LABEL_MAP[selectType] || selectType
|
|
59
|
-
})
|
|
60
|
-
});
|
|
51
|
+
const isRangeMode = 'INITIATOR_SELECT' === selectType || 'APPROVER_SELECT' === selectType;
|
|
61
52
|
return /*#__PURE__*/ jsx(Form.Item, {
|
|
62
|
-
label: "当前操作人",
|
|
53
|
+
label: isRangeMode ? "设定人员范围" : "当前操作人",
|
|
63
54
|
name: [
|
|
64
55
|
"OperatorLoadStrategy",
|
|
65
56
|
"script"
|
|
66
57
|
],
|
|
67
|
-
tooltip: "设定流程的审批人",
|
|
58
|
+
tooltip: isRangeMode ? "设定可选人员范围,留空表示不限范围(可选任意人)" : "设定流程的审批人",
|
|
68
59
|
children: /*#__PURE__*/ jsx(Field, {
|
|
69
60
|
name: "OperatorLoadStrategy.script",
|
|
70
61
|
render: ({ field: { value, onChange } })=>/*#__PURE__*/ jsxs(Space.Compact, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coding-flow/flow-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"description": "flow-engine design components ",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"nanoid": "^5.1.6",
|
|
55
55
|
"react-redux": "^9.2.0",
|
|
56
56
|
"styled-components": "^5.3.11",
|
|
57
|
-
"@coding-flow/flow-core": "0.0.
|
|
58
|
-
"@coding-flow/flow-
|
|
59
|
-
"@coding-flow/flow-
|
|
60
|
-
"@coding-flow/flow-
|
|
57
|
+
"@coding-flow/flow-core": "0.0.37",
|
|
58
|
+
"@coding-flow/flow-types": "0.0.37",
|
|
59
|
+
"@coding-flow/flow-icons": "0.0.37",
|
|
60
|
+
"@coding-flow/flow-pc-ui": "0.0.37"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/lodash-es": "^4.17.12",
|
|
64
64
|
"@types/styled-components": "^5.1.36",
|
|
65
|
-
"@coding-flow/flow-core": "0.0.
|
|
66
|
-
"@coding-flow/flow-types": "0.0.
|
|
65
|
+
"@coding-flow/flow-core": "0.0.37",
|
|
66
|
+
"@coding-flow/flow-types": "0.0.37"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "rslib build",
|