import { NsGraph, NsNodeCollapsePanel } from '@antv/xflow'; /** config dnd panel */ import '@antv/xflow/dist/index.css'; import { FormInstance } from 'antd/es/form'; import './DiJobFlow/index.less'; import { WsDiJob } from './types/typings'; export interface DiJobFlowPorps { /** * 元信息 */ meta: { flowId?: string; origin: WsDiJob | any; preViewService?: (jobId: string | number, setConf: any) => any; loadJobInfo: (jobId: string, refresh?: Function) => Promise | any; saveStepAttr: (step: Map) => Promise | any; listJobAttr: (jobId: string, form: FormInstance) => any; saveJobAttr: (attrs: { jobId: string; jobAttr: string; jobProp: string; engineProp: string; }, onCancel?: Function) => any; }; /** * 画布数据 * */ graphData: NsGraph.IGraphData; /** * 组件面板 * */ nodeDataService: NsNodeCollapsePanel.INodeDataService; onNodeDrop: NsNodeCollapsePanel.IOnNodeDrop; /** * 保存事件函数 */ saveGraphData: (meta: any, graphData: any) => any; /** * 搜索函数 */ searchService?: (nodes: NsNodeCollapsePanel.IPanelNode[], keyword: string) => any; } declare const DiJobFlow: (props: any) => import("react/jsx-runtime").JSX.Element; export default DiJobFlow;