import React from 'react'; import { FormStore } from '../store'; import { ErrorMessage, CheckResult } from '../typings'; import { ShowErrorProps } from '../Components'; export declare type Params = { /** * string | string[] */ id: any; errors?: ErrorMessage[]; disabled?: boolean; checkresult: CheckResult | CheckResult[]; onBlur: () => void; onFocus: () => void; [key: string]: any; }; export declare type AutowiredFuncChild = (params: Params) => React.ReactNode; export interface AutowiredProps | Extract[] = Extract | Extract[]> { store?: FormStore; /** * 注入的字段 Key,可以是字符串 或 字符串数组 */ id: P; /** * 替换组件上 id */ replaceId?: string; children?: React.ReactElement | AutowiredFuncChild; /** * 数据注入props的名称 默认 value */ valueName?: string; /** * 数据收集的时机 默认 onChange */ trigger?: string; /** * */ suppressErrorOnValiding?: boolean; /** * 是否展示错误信息 */ showError?: boolean; /** * 错误信息组件props */ showErrorProps?: ShowErrorProps; } declare const _default: React.FunctionComponent>; export default _default;