Skip to content

Commit d67a055

Browse files
authoredApr 8, 2022
type(Form): 修复 children 类型问题 (#755)
1 parent eca761a commit d67a055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/react-form/src/Form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface FormProps<T> extends IProps, Omit<React.FormHTMLAttributes<HTML
1111
onChange?: (state: FormState) => void;
1212
onSubmitError?: (evn: any) => any;
1313
resetOnSubmit?: boolean;
14-
children?: (handle: FormChildrenProps) => JSX.Element | JSX.Element | undefined;
14+
children?: ((handle: FormChildrenProps) => JSX.Element | undefined) | JSX.Element | undefined;
1515
}
1616

1717
export interface FormState {

0 commit comments

Comments
 (0)
Please sign in to comment.