@coding-flow/flow-approval-presenter 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.
@@ -7,6 +7,7 @@ export declare class ApprovalContextScope {
7
7
  constructor(presenter: ApprovalPresenter, props: ApprovalLayoutProps);
8
8
  syncState(state: ApprovalState): void;
9
9
  getPresenter(): ApprovalPresenter;
10
+ getInitData(): any;
10
11
  close(): void;
11
12
  initialState(): void;
12
13
  }
@@ -12,6 +12,9 @@ class ApprovalContextScope {
12
12
  getPresenter() {
13
13
  return this.presenter;
14
14
  }
15
+ getInitData() {
16
+ return this.props.initData;
17
+ }
15
18
  close() {
16
19
  this.props.onClose?.();
17
20
  }
@@ -6,6 +6,17 @@ export interface ApprovalLayoutProps {
6
6
  content: FlowContent;
7
7
  review?: boolean;
8
8
  onClose?: () => void;
9
+ /** 初始化数据 **/
10
+ initData?: any;
11
+ }
12
+ /** 流程审批面板 */
13
+ export interface ApprovalPanelProps {
14
+ /** 初始化数据 **/
15
+ initData?: any;
16
+ workflowCode?: string;
17
+ recordId?: string;
18
+ onClose?: () => void;
19
+ review?: boolean;
9
20
  }
10
21
  export type ApprovalState = {
11
22
  flow?: FlowContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coding-flow/flow-approval-presenter",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "flow-engine approval presenter framework ",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -36,11 +36,11 @@
36
36
  "dayjs": "^1.11.19",
37
37
  "immer": "^11.1.3",
38
38
  "react-redux": "^9.2.0",
39
- "@coding-flow/flow-core": "0.0.4",
40
- "@coding-flow/flow-types": "0.0.4"
39
+ "@coding-flow/flow-core": "0.0.6",
40
+ "@coding-flow/flow-types": "0.0.6"
41
41
  },
42
42
  "devDependencies": {
43
- "@coding-flow/flow-types": "0.0.4"
43
+ "@coding-flow/flow-types": "0.0.6"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "rslib build",