|
@ -12,11 +12,12 @@ import { SizeContextProvider } from '../config-provider/SizeContext'; |
|
|
import useSize from '../config-provider/hooks/useSize'; |
|
|
import useSize from '../config-provider/hooks/useSize'; |
|
|
import type { ColProps } from '../grid/col'; |
|
|
import type { ColProps } from '../grid/col'; |
|
|
import type { FormContextProps } from './context'; |
|
|
import type { FormContextProps } from './context'; |
|
|
import { FormContext, FormProvider, ValidateMessagesContext } from './context'; |
|
|
import { FormContext, FormProvider } from './context'; |
|
|
import useForm, { type FormInstance } from './hooks/useForm'; |
|
|
import useForm, { type FormInstance } from './hooks/useForm'; |
|
|
import useFormWarning from './hooks/useFormWarning'; |
|
|
import useFormWarning from './hooks/useFormWarning'; |
|
|
import type { FormLabelAlign } from './interface'; |
|
|
import type { FormLabelAlign } from './interface'; |
|
|
import useStyle from './style'; |
|
|
import useStyle from './style'; |
|
|
|
|
|
import ValidateMessagesContext from './validateMessagesContext'; |
|
|
|
|
|
|
|
|
export type RequiredMark = boolean | 'optional'; |
|
|
export type RequiredMark = boolean | 'optional'; |
|
|
export type FormLayout = 'horizontal' | 'inline' | 'vertical'; |
|
|
export type FormLayout = 'horizontal' | 'inline' | 'vertical'; |
|
@ -186,6 +187,6 @@ const Form = React.forwardRef<FormInstance, FormProps>(InternalForm) as <Values |
|
|
props: React.PropsWithChildren<FormProps<Values>> & { ref?: React.Ref<FormInstance<Values>> }, |
|
|
props: React.PropsWithChildren<FormProps<Values>> & { ref?: React.Ref<FormInstance<Values>> }, |
|
|
) => React.ReactElement; |
|
|
) => React.ReactElement; |
|
|
|
|
|
|
|
|
export { useForm, List, type FormInstance, useWatch }; |
|
|
export { List, useForm, useWatch, type FormInstance }; |
|
|
|
|
|
|
|
|
export default Form; |
|
|
export default Form; |
|
|