1 | import { FormInstance } from 'rc-field-form';
|
2 | import type { FieldProps } from 'rc-field-form/lib/Field';
|
3 | import type { FC, MutableRefObject, ReactNode } from 'react';
|
4 | import React from 'react';
|
5 | import { NativeProps } from '../../utils/native-props';
|
6 | import { ListItemProps } from '../list';
|
7 | import type { FormLayout } from './index';
|
8 | declare type RenderChildren<Values = any> = (form: FormInstance<Values>) => ReactNode;
|
9 | declare type ChildrenType<Values = any> = RenderChildren<Values> | ReactNode;
|
10 | declare type RcFieldProps = Omit<FieldProps, 'children'>;
|
11 | export declare type FormItemProps = Pick<RcFieldProps, 'dependencies' | 'valuePropName' | 'name' | 'rules' | 'messageVariables' | 'trigger' | 'validateTrigger' | 'shouldUpdate' | 'initialValue' | 'getValueFromEvent' | 'getValueProps' | 'normalize' | 'preserve' | 'validateFirst'> & Pick<ListItemProps, 'style' | 'extra' | 'clickable' | 'arrow' | 'arrowIcon' | 'description'> & {
|
12 | label?: ReactNode;
|
13 | help?: ReactNode;
|
14 | helpIcon?: ReactNode;
|
15 | hasFeedback?: boolean;
|
16 | required?: boolean;
|
17 | noStyle?: boolean;
|
18 | disabled?: boolean;
|
19 | hidden?: boolean;
|
20 | layout?: FormLayout;
|
21 | childElementPosition?: 'normal' | 'right';
|
22 | children?: ChildrenType;
|
23 | onClick?: (e: React.MouseEvent, widgetRef: MutableRefObject<any>) => void;
|
24 | } & NativeProps;
|
25 | export declare const FormItem: FC<FormItemProps>;
|
26 | export {};
|