1 | import * as React from 'react';
|
2 | import { ColProps } from 'antd/lib/grid/col';
|
3 | import { ConfigConsumerProps } from '../CompatibleConsumer';
|
4 | declare const ValidateStatuses: ["success", "warning", "error", "validating", ""];
|
5 | declare const FormLabelAligns: ["left", "right"];
|
6 | export declare type FormLabelAlign = typeof FormLabelAligns[number];
|
7 | export interface FormItemProps {
|
8 | prefixCls?: string;
|
9 | className?: string;
|
10 | id?: string;
|
11 | htmlFor?: string;
|
12 | label?: React.ReactNode;
|
13 | labelAlign?: FormLabelAlign;
|
14 | labelCol?: ColProps;
|
15 | wrapperCol?: ColProps;
|
16 | help?: React.ReactNode;
|
17 | extra?: React.ReactNode;
|
18 | validateStatus?: typeof ValidateStatuses[number];
|
19 | hasFeedback?: boolean;
|
20 | required?: boolean;
|
21 | style?: React.CSSProperties;
|
22 | colon?: boolean;
|
23 | }
|
24 | export default class FormItem extends React.Component<FormItemProps, any> {
|
25 | helpShow: boolean;
|
26 | static defaultProps: {
|
27 | hasFeedback: boolean;
|
28 | };
|
29 | componentDidMount(): void;
|
30 | getHelpMessage(): React.ReactNode;
|
31 | getControls(children: React.ReactNode, recursively: boolean): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
32 | getOnlyControl(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
33 | getChildProp(prop: string): any;
|
34 | getId(): any;
|
35 | getMeta(): any;
|
36 | getField(): any;
|
37 | getValidateStatus(): "error" | "" | "success" | "validating";
|
38 | onLabelClick: () => void;
|
39 | onHelpAnimEnd: (_key: string, helpShow: boolean) => void;
|
40 | isRequired(): any;
|
41 | renderHelp(prefixCls: string): JSX.Element;
|
42 | renderExtra(prefixCls: string): JSX.Element;
|
43 | renderValidateWrapper(prefixCls: string, c1: React.ReactNode, c2: React.ReactNode, c3: React.ReactNode): JSX.Element;
|
44 | renderWrapper(prefixCls: string, children: React.ReactNode): JSX.Element;
|
45 | renderLabel(prefixCls: string): JSX.Element;
|
46 | renderChildren(prefixCls: string): JSX.Element[];
|
47 | renderFormItem: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
|
48 | render(): JSX.Element;
|
49 | }
|
50 | export {};
|