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