import { FormInstance } from 'antd/es/form'; import React from 'react'; import { LabelInValue } from '../../shared/schema'; import InnerComponents from '../../components'; export interface Props { style?: React.CSSProperties; className?: string; /** field key */ fieldName: string; /** display name */ label?: string; /** placeholder text */ placeholder?: string; /** * component type */ type: keyof typeof InnerComponents | 'custom' | T; component?: React.JSXElementConstructor | React.ReactNode | ((form: FormInstance) => any); /** disabled component input */ disabled?: boolean; value?: any; onChange?: (data: any) => void; /** * provide data to component */ data?: LabelInValue[]; /** * form item child component extra props */ elementSpecProps?: any; /** registe components */ components?: { [key: string]: React.ReactNode | React.FunctionComponent | React.Component; }; } export declare const FIELD_CHANGE_EVENT_NAME = "fieldChange"; declare const FieldRender: React.FC; export default FieldRender;