element ui表单校验同步进行
时间: 2023-08-31 21:10:58 浏览: 182
在element-ui中,表单校验可以同步进行。在1.X版本中,校验的trigger属性可以设置为'change|blur',表示在输入内容改变和失去焦点时触发校验。而在2.X版本中,校验的trigger属性只需设置为'change',即在输入内容改变时触发校验即可。根据需求和版本的不同,可以灵活选择合适的校验触发方式。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Element-UI 表单校验](https://blog.csdn.net/yuan_jlj/article/details/125768497)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [详解element-ui 表单校验 Rules 配置 常用黑科技](https://download.csdn.net/download/weixin_38700430/12925142)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文