validateTrigger
时间: 2023-09-03 07:14:41 浏览: 144
validateTrigger是一个属性,用于设置字段触发验证的时机。它可以设置在form上或者Form.Item上,以设置不同字段的触发验证时机。在引用中的示例代码中,validateTrigger设置为'blur',即在失去焦点时触发验证。而在引用中的示例代码中,validateTrigger设置为['onBlur', 'onChange'],即在失去焦点和值改变时触发验证。通过设置不同的validateTrigger,可以根据需求来决定字段的验证时机。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Antd Vue 自定义表单验证方式](https://blog.csdn.net/qq_38211541/article/details/104823962)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Ant Design在日常开发中的使用,这里都有](https://blog.csdn.net/pfourfire/article/details/124864411)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文