/** * @author yaoxue * @date 2024/08/19 * @description 表单 */ import type { Rule, RuleObject, RuleRender } from 'rc-field-form/lib/interface'; import { FormProvider } from './context'; import InternalForm, { useForm, useWatch } from './Form'; import type { FormInstance as FieldFormInstance, FormProps as FieldFormProps } from './Form'; import ErrorList from './ErrorList'; import type { ErrorListProps } from './ErrorList'; import Item from './FieldFormItem'; import type { FormItemProps as FieldFormItemProps } from './FieldFormItem'; import List from './FormList'; import type { FormListFieldData as FieldFormListFieldData, FormListOperation as FieldFormListOperation, FormListProps as FieldFormListProps } from './FormList'; import useFormInstance from './hooks/useFormInstance'; import './index.scss'; type InternalFormType = typeof InternalForm; type CompoundedComponent = InternalFormType & { useForm: typeof useForm; useFormInstance: typeof useFormInstance; useWatch: typeof useWatch; Item: typeof Item; List: typeof List; ErrorList: typeof ErrorList; Provider: typeof FormProvider; }; declare const FieldForm: CompoundedComponent; export type { ErrorListProps, FieldFormInstance, FieldFormItemProps, FieldFormListFieldData, FieldFormListOperation, FieldFormListProps, FieldFormProps, Rule, RuleObject, RuleRender }; export default FieldForm;