Merge pull request #17412 from ant-design/fix-form-onSubmit-type

fix: Form onSubmit type
This commit is contained in:
偏右 2019-07-02 22:20:59 +08:00 committed by GitHub
commit 6429172ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ export type FormLayout = (typeof FormLayouts)[number];
export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
layout?: FormLayout;
form?: WrappedFormUtils;
onSubmit?: React.FormEventHandler<HTMLElement>;
onSubmit?: React.FormEventHandler<HTMLFormElement>;
style?: React.CSSProperties;
className?: string;
prefixCls?: string;