Iview: Form Submit?

Created on 9 Apr 2017  ·  3Comments  ·  Source: iview/iview

是否有考虑支持拦截 form submit? 现在所有的 example 里 form 都基于 button click(button type != submit),在这种情况下 input 按回车不能实现递交,非常不友好

Most helpful comment

在Form组件上增加 @submit.native.prevent="handleSubmit()", 再在组件内部增加一个即可回车触发form的submit

All 3 comments

可以监听 Input 的回车事件。

This is a workaround, not a fix.

在Form组件上增加 @submit.native.prevent="handleSubmit()", 再在组件内部增加一个即可回车触发form的submit

Was this page helpful?
0 / 5 - 0 ratings