8000 componentValidate 对象模式,不生效 · Issue #780 · xaboy/form-create · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

componentValidate 对象模式,不生效 #780

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

Open
78B4
yfmei opened this issue Jun 17, 2025 · 0 comments
Open

componentValidate 对象模式,不生效 #780

yfmei opened this issue Jun 17, 2025 · 0 comments

Comments

@yfmei
Copy link
yfmei commented Jun 17, 2025

我的自定义表格组件实时触发校验有问题,所以使用 trigger 失焦触发校验,但是不生效。

对象模式 componentValidate 配置:

      componentValidate: {
        method: 'myCustomValidateMethod',
        trigger: ['blur'],
      }

发现是图中的 delete 把配置的自定义校验方法删掉了,后续自定义组件 blur、手动 validate 再触发校验会报错:未找到自定义方法

Image

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

No branches or pull requests

1 participant
0