简体   繁体   English

如何将验证码集成到 Antd Form onFinish Function

[英]How to integrate captcha into the Antd Form onFinish Function

I want to integrate a slider captcha into the submit button of an antd form component in a way that the form itself will check inputs first and then shows the captcha if all checks pass.我想将 slider 验证码集成到 antd 表单组件的提交按钮中,表单本身将首先检查输入,然后在所有检查通过时显示验证码。 However, according to doc and the figure below, the captcha will be always triggered.但是,根据文档和下图,验证码将始终被触发。 Is there a way to achieve the scenario mentioned at the beginning?有没有办法实现开头提到的场景? 在此处输入图像描述

So basically we can use a reference to do so.所以基本上我们可以使用引用来做到这一点。 try to use pass reference to the button and start to integrate the button into a series of actions尝试使用对按钮的传递引用并开始将按钮集成到一系列动作中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM