Skip to content

Commit 7c532d0

Browse files
authored
Merge pull request #66 from codingapi/dev
update plugin
2 parents cb4c5da + 5735762 commit 7c532d0

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

frontend/packages/flow-pc/flow-pc-design/src/components/script/components/action/components/custom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import {ActionFormProps} from "@/components/script/typings";
33
import {Col, Form, Row} from "antd";
4-
import {ConditionCustomView} from "@/plugins/view/action-custom-view";
4+
import {ActionCustomView} from "@/plugins/view/action-custom-view";
55

66
export const CustomActionForm: React.FC<ActionFormProps> = (props) => {
77

@@ -22,7 +22,7 @@ export const CustomActionForm: React.FC<ActionFormProps> = (props) => {
2222
}
2323
]}
2424
>
25-
<ConditionCustomView
25+
<ActionCustomView
2626
options={actionOptionTypes}
2727
/>
2828
</Form.Item>

frontend/packages/flow-pc/flow-pc-design/src/components/script/components/action/components/reject.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import {ActionFormProps} from "@/components/script/typings";
33
import {Col, Form, Row} from "antd";
4-
import {ConditionRejectView} from "@/plugins/view/action-reject-view";
4+
import {ActionRejectView} from "@/plugins/view/action-reject-view";
55

66

77
export const RejectActionForm:React.FC<ActionFormProps> = (props)=>{
@@ -16,7 +16,7 @@ export const RejectActionForm:React.FC<ActionFormProps> = (props)=>{
1616
label={"拒绝策略"}
1717
help={"配置拒绝时跳转的节点"}
1818
>
19-
<ConditionRejectView
19+
<ActionRejectView
2020
nodeId={props.nodeId}
2121
/>
2222
</Form.Item>

frontend/packages/flow-pc/flow-pc-design/src/plugins/view/action-custom-view.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import {ActionCustomViewPlugin, VIEW_KEY} from "@/plugins/action-custom-view-typ
66
import {ViewBindPlugin} from "@flow-engine/flow-core";
77

88

9-
export const ConditionCustomView: React.FC<ActionCustomViewPlugin> = (props) => {
9+
export const ActionCustomView: React.FC<ActionCustomViewPlugin> = (props) => {
1010

11-
const ConditionCustomViewComponent = ViewBindPlugin.getInstance().get(VIEW_KEY);
11+
const ActionCustomViewComponent = ViewBindPlugin.getInstance().get(VIEW_KEY);
1212

13-
if (ConditionCustomViewComponent) {
13+
if (ActionCustomViewComponent) {
1414
return (
15-
<ConditionCustomViewComponent {...props} />
15+
<ActionCustomViewComponent {...props} />
1616
);
1717
}
1818

frontend/packages/flow-pc/flow-pc-design/src/plugins/view/action-reject-view.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ const useActionRejectService = (nodeId: string) => {
1212
return new ActionRejectService(nodeManager);
1313
}
1414

15-
export const ConditionRejectView: React.FC<ActionRejectViewPlugin> = (props) => {
15+
export const ActionRejectView: React.FC<ActionRejectViewPlugin> = (props) => {
1616

1717
const rejectService = useActionRejectService(props.nodeId);
18-
const ConditionRejectViewComponent = ViewBindPlugin.getInstance().get(VIEW_KEY);
18+
const ActionRejectViewComponent = ViewBindPlugin.getInstance().get(VIEW_KEY);
1919

20-
if (ConditionRejectViewComponent) {
20+
if (ActionRejectViewComponent) {
2121
return (
22-
<ConditionRejectViewComponent {...props} />
22+
<ActionRejectViewComponent {...props} />
2323
);
2424
}
2525

0 commit comments

Comments
 (0)