From 6e58a65defc092662d0b7930a36176fb26dfa9be Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 20 Sep 2022 15:13:28 +0800 Subject: [PATCH] type(Form): fix children type error. --- packages/react-form/src/Form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-form/src/Form.tsx b/packages/react-form/src/Form.tsx index 0d763b9713..7b34d9b557 100644 --- a/packages/react-form/src/Form.tsx +++ b/packages/react-form/src/Form.tsx @@ -25,7 +25,7 @@ export interface FormState { export interface FormFieldsProps extends Omit, 'children'> { name?: string; - children?: (handle: FormChildrenProps) => JSX.Element; + children?: ((handle: FormChildrenProps) => JSX.Element) | JSX.Element; help?: React.ReactNode; labelFor?: string; inline?: boolean;