Skip to content

Commit

Permalink
type(Form): 修复 children 类型问题 (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLxy committed Apr 8, 2022
1 parent eca761a commit d67a055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-form/src/Form.tsx
Expand Up @@ -11,7 +11,7 @@ export interface FormProps<T> extends IProps, Omit<React.FormHTMLAttributes<HTML
onChange?: (state: FormState) => void;
onSubmitError?: (evn: any) => any;
resetOnSubmit?: boolean;
children?: (handle: FormChildrenProps) => JSX.Element | JSX.Element | undefined;
children?: ((handle: FormChildrenProps) => JSX.Element | undefined) | JSX.Element | undefined;
}

export interface FormState {
Expand Down

0 comments on commit d67a055

Please sign in to comment.