1 | import * as React from 'react';
|
2 | import { FormInstance } from 'rc-field-form';
|
3 | import { FieldProps } from 'rc-field-form/lib/Field';
|
4 | import { FormItemLabelProps, LabelTooltipType } from './FormItemLabel';
|
5 | import { FormItemInputProps } from './FormItemInput';
|
6 | declare const ValidateStatuses: ["success", "warning", "error", "validating", ""];
|
7 | export declare type ValidateStatus = typeof ValidateStatuses[number];
|
8 | declare type RenderChildren<Values = any> = (form: FormInstance<Values>) => React.ReactNode;
|
9 | declare type RcFieldProps<Values = any> = Omit<FieldProps<Values>, 'children'>;
|
10 | declare type ChildrenType<Values = any> = RenderChildren<Values> | React.ReactNode;
|
11 | export interface FormItemProps<Values = any> extends FormItemLabelProps, FormItemInputProps, RcFieldProps<Values> {
|
12 | prefixCls?: string;
|
13 | noStyle?: boolean;
|
14 | style?: React.CSSProperties;
|
15 | className?: string;
|
16 | children?: ChildrenType<Values>;
|
17 | id?: string;
|
18 | hasFeedback?: boolean;
|
19 | validateStatus?: ValidateStatus;
|
20 | required?: boolean;
|
21 | hidden?: boolean;
|
22 | initialValue?: any;
|
23 | messageVariables?: Record<string, string>;
|
24 | tooltip?: LabelTooltipType;
|
25 |
|
26 | fieldKey?: React.Key | React.Key[];
|
27 | }
|
28 | declare function FormItem<Values = any>(props: FormItemProps<Values>): React.ReactElement;
|
29 | export default FormItem;
|