ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

使用form表单,自定义校验(validator)时出现意外的警告。

Open xakxak007 opened this issue 1 year ago • 1 comments
trafficstars

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

Version

4.2.3

Environment

mac os:14.5; chrome:127.0.6533.120; Vue:3.4.29

Reproduction link

Edit on CodeSandbox

Steps to reproduce

使用form表单,在其添加一个input输入框,在校验规则中,使用自定义校验(validator),根据文档使用了callback。但是在控制台出现了警告 :“Warning: callback is deprecated. Please return a promise instead.”

What is expected?

代码无警告正常运行。

What is actually happening?

出现了意外的警告:“Warning: callback is deprecated. Please return a promise instead.”

xakxak007 avatar Aug 21 '24 02:08 xakxak007

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Oct 20 '24 02:10 github-actions[bot]

我也遇到这个问题了

alicemw avatar Nov 27 '24 07:11 alicemw

好吧,是async_validator更新了,你这文档也更新一下啊

alicemw avatar Nov 27 '24 08:11 alicemw