@coding-flow/flow-mobile-approval 0.0.3 → 0.0.5

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 {};
@@ -17,6 +17,7 @@ const ApprovalPanel = (props)=>{
17
17
  children: content && /*#__PURE__*/ jsx(ApprovalLayout, {
18
18
  content: content,
19
19
  onClose: props.onClose,
20
+ initData: props.initData,
20
21
  review: props.review
21
22
  })
22
23
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coding-flow/flow-mobile-approval",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
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.11",
36
+ "@coding-form/form-engine": "^0.0.13",
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.3",
43
- "@coding-flow/flow-icons": "0.0.3",
44
- "@coding-flow/flow-types": "0.0.3",
45
- "@coding-flow/flow-approval-presenter": "0.0.3",
46
- "@coding-flow/flow-mobile-ui": "0.0.3",
47
- "@coding-flow/flow-mobile-form": "0.0.3"
42
+ "@coding-flow/flow-core": "0.0.5",
43
+ "@coding-flow/flow-types": "0.0.5",
44
+ "@coding-flow/flow-icons": "0.0.5",
45
+ "@coding-flow/flow-approval-presenter": "0.0.5",
46
+ "@coding-flow/flow-mobile-ui": "0.0.5",
47
+ "@coding-flow/flow-mobile-form": "0.0.5"
48
48
  },
49
49
  "devDependencies": {
50
- "@coding-flow/flow-types": "0.0.3"
50
+ "@coding-flow/flow-types": "0.0.5"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "rslib build",