We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 执行自定义校验 const handleCustomValidator = () => { return new Promise((resolve) => { this.__eventHandler('verification-code-valid', async (callback) => { if (isFunction(callback)) { const valid = await callback(this.VFormRoot) if (valid === false) resolve(false) } }) resolve(true) }) }
handleCustomValidator 返回结果总是为true,外部callback返回值不生效
The text was updated successfully, but these errors were encountered:
if (type === 'verification-code-valid') { value(async (formRoot) => { // 返回 true 代表通过,开始倒计时;false 则不执行 return false }) }
测试发现return false时无效,依然触发倒计时
Sorry, something went wrong.
9c0c520
No branches or pull requests
handleCustomValidator 返回结果总是为true,外部callback返回值不生效
The text was updated successfully, but these errors were encountered: