Skip to content
New issue

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

[Feature Request] 为什么自定义校验时候,value为空,不走自定义函数了? #4204

Open
1 task
yizhengfeng-jj opened this issue Aug 16, 2024 · 0 comments

Comments

@yizhengfeng-jj
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

我想要在自定义校验,value为空的时候,定制必填文案,

并且我觉得
setValidateLanguage('zh-CN')

registerValidateLocale({
'zh-CN': {
required: '定制的必填校验文案',
},
})
麻烦了

而且为空的必填文案,说不定也是动态根据表单的某一个值生成的!

我的意思是只要我设置了自定义校验函数,那么任何触发条件,都会执行这个函数

What does the proposed API look like?

我期望自定义校验时候,value为空也是会走自定义校验函数,并且优先级最高

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant