File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export const FormProps = {
5757 validateOnRuleChange : PropTypes . looseBool ,
5858 // 提交失败自动滚动到第一个错误字段
5959 scrollToFirstError : PropTypes . looseBool ,
60+ onSubmit : PropTypes . func ,
6061 onFinish : PropTypes . func ,
6162 onFinishFailed : PropTypes . func ,
6263 name : PropTypes . string ,
@@ -276,7 +277,7 @@ const Form = defineComponent({
276277 const { prefixCls : customizePrefixCls , hideRequiredMark, layout, handleSubmit } = this ;
277278 const getPrefixCls = this . configProvider . getPrefixCls ;
278279 const prefixCls = getPrefixCls ( 'form' , customizePrefixCls ) ;
279- const { class : className , onSubmit : originSubmit , ...restProps } = this . $attrs ;
280+ const { class : className , ...restProps } = this . $attrs ;
280281
281282 const formClassName = classNames ( prefixCls , className , {
282283 [ `${ prefixCls } -horizontal` ] : layout === 'horizontal' ,
You can’t perform that action at this time.
0 commit comments