UNPKG

react-flow-ui

Version:

O `react-edit-flow` é um módulo para React.js que fornece uma solução para desenvolvimento visual baseado em *no-code* e *low-code*. Este módulo facilita a criação e manipulação de fluxos de trabalho por meio de uma interface intuitiva e gráfica, permitin

28 lines (27 loc) 856 B
import React from "react"; import { IInputProps } from "./InputField"; import { IConditionProps } from "./ConditionField"; import { IVariableProps } from "./VariableField"; import RegisterNode from "../RegisterNode"; export type IProps<T extends Object> = T & { onChange?: (value: any) => void; }; interface Log { type: "error" | "warning" | "info"; message: string; } export type INodeFieldBase<P extends Object> = { type: string; fieldName: string; value?: any; hidden?: boolean; tryOut?: (props: P) => Log | Log[]; onChange?: (props: P) => P; } & P; declare const RenderNodeFields: React.FC<{ id: string; node: RegisterNode; onChange?: (fields: INodeField[]) => void; }>; export type INodeField = IInputProps | IConditionProps | IVariableProps; export default RenderNodeFields;