form表单验证报错
时间: 2023-08-25 21:07:15 浏览: 235
form表单验证
在使用ivew的表单form时,如果在弹窗model展示筛选列表后再复制input的情况下,可能会出现表单验证报错的问题。这是因为单个参数的验证类型的问题。当参数的trigger为"blur"时,无法判断参数的值是否有变化,即使input已经有值,仍然会报错。解决办法是将trigger的值改为"change"模式,这样就可以避免报错了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [iview组件form表单的验证报错问题解决](https://blog.csdn.net/lyz246859/article/details/129265819)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Vue ElementUI之Form表单验证遇到的问题](https://download.csdn.net/download/weixin_38689113/13608824)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [el-form表单验证报错[Element Warn][Form]model is required for validate to work!](https://blog.csdn.net/weixin_45812336/article/details/120978860)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文