@coding-flow/flow-mobile-approval 0.0.4 → 0.0.6
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.
|
@@ -34,6 +34,7 @@ const FormViewComponent = (props)=>{
|
|
|
34
34
|
});
|
|
35
35
|
formInstance.resetFields();
|
|
36
36
|
formInstance.setFieldsValue({
|
|
37
|
+
...context.getInitData(),
|
|
37
38
|
...formRecord,
|
|
38
39
|
recordId: item.data?.recordId
|
|
39
40
|
});
|
|
@@ -46,6 +47,7 @@ const FormViewComponent = (props)=>{
|
|
|
46
47
|
if (mergeable) return /*#__PURE__*/ jsx(ViewComponent, {
|
|
47
48
|
mergeable: mergeable,
|
|
48
49
|
fieldPermissions: fieldPermissions,
|
|
50
|
+
initData: context.getInitData(),
|
|
49
51
|
review: review,
|
|
50
52
|
meta: flowForm,
|
|
51
53
|
formList: formList,
|
|
@@ -55,6 +57,7 @@ const FormViewComponent = (props)=>{
|
|
|
55
57
|
return /*#__PURE__*/ jsx(Fragment, {
|
|
56
58
|
children: formList.map((item, index)=>/*#__PURE__*/ jsx(ViewComponent, {
|
|
57
59
|
data: item.data,
|
|
60
|
+
initData: context.getInitData(),
|
|
58
61
|
mergeable: mergeable,
|
|
59
62
|
fieldPermissions: fieldPermissions,
|
|
60
63
|
review: review,
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { type ApprovalPanelProps } from "@coding-flow/flow-approval-presenter";
|
|
2
3
|
import "./index.scss";
|
|
3
|
-
interface ApprovalPanelProps {
|
|
4
|
-
workflowCode?: string;
|
|
5
|
-
recordId?: string;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
review?: boolean;
|
|
8
|
-
}
|
|
9
4
|
export declare const ApprovalPanel: React.FC<ApprovalPanelProps>;
|
|
10
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coding-flow/flow-mobile-approval",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "flow-engine pc mobile approval components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ant-design/icons": "~6.1.0",
|
|
36
|
-
"@coding-form/form-engine": "^0.0.
|
|
36
|
+
"@coding-form/form-engine": "^0.0.14",
|
|
37
37
|
"@reduxjs/toolkit": "^2.11.2",
|
|
38
38
|
"antd-mobile": "^5.42.3",
|
|
39
39
|
"dayjs": "^1.11.19",
|
|
40
40
|
"immer": "^11.1.3",
|
|
41
41
|
"react-redux": "^9.2.0",
|
|
42
|
-
"@coding-flow/flow-core": "0.0.
|
|
43
|
-
"@coding-flow/flow-
|
|
44
|
-
"@coding-flow/flow-
|
|
45
|
-
"@coding-flow/flow-mobile-ui": "0.0.
|
|
46
|
-
"@coding-flow/flow-approval-presenter": "0.0.
|
|
47
|
-
"@coding-flow/flow-mobile-form": "0.0.
|
|
42
|
+
"@coding-flow/flow-core": "0.0.6",
|
|
43
|
+
"@coding-flow/flow-icons": "0.0.6",
|
|
44
|
+
"@coding-flow/flow-types": "0.0.6",
|
|
45
|
+
"@coding-flow/flow-mobile-ui": "0.0.6",
|
|
46
|
+
"@coding-flow/flow-approval-presenter": "0.0.6",
|
|
47
|
+
"@coding-flow/flow-mobile-form": "0.0.6"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@coding-flow/flow-types": "0.0.
|
|
50
|
+
"@coding-flow/flow-types": "0.0.6"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "rslib build",
|