UNPKG

976 BTypeScriptView Raw
1import * as React from 'react';
2import { ColProps } from '../grid/col';
3import { ValidateStatus } from './FormItem';
4interface FormItemInputMiscProps {
5 prefixCls: string;
6 children: React.ReactNode;
7 errors: React.ReactNode[];
8 hasFeedback?: boolean;
9 validateStatus?: ValidateStatus;
10 onDomErrorVisibleChange: (visible: boolean) => void;
11 /** @private Internal Usage, do not use in any of your production. */
12 _internalItemRender?: {
13 mark: string;
14 render: (props: FormItemInputProps & FormItemInputMiscProps, domList: {
15 input: JSX.Element;
16 errorList: JSX.Element;
17 extra: JSX.Element | null;
18 }) => React.ReactNode;
19 };
20}
21export interface FormItemInputProps {
22 wrapperCol?: ColProps;
23 help?: React.ReactNode;
24 extra?: React.ReactNode;
25 status?: ValidateStatus;
26}
27declare const FormItemInput: React.FC<FormItemInputProps & FormItemInputMiscProps>;
28export default FormItemInput;