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

a-form-model-item validate-status and help are not effective #4788

Open
1 task done
Hucy opened this issue Oct 20, 2021 · 2 comments
Open
1 task done

a-form-model-item validate-status and help are not effective #4788

Hucy opened this issue Oct 20, 2021 · 2 comments

Comments

@Hucy
Copy link

Hucy commented Oct 20, 2021

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

Version

1.7.2

Environment

windows10 Chrome 94.0.4606.81 Vue 2.5.17

Reproduction link

Edit on CodeSandbox

Steps to reproduce

在 a-form-model-item 和 a-form-item 设置 validate-status 为 success, help 为 xxx :
a-form-model-item 未生效
a-form-item 生效

What is expected?

a-form-model-item 为 success 状态,提示文案为 xxx

What is actually happening?

a-form-model-item 为 error 状态 提示文案为错误信息

@github-actions github-actions bot changed the title a-form-model-item validate-status 和 help 未生效 a-form-model-item validate-status and help are not effective Oct 20, 2021
@tangjinzhou
Copy link
Member

手动传递 status 了,就没有使用 prop 的必要了吧
https://codesandbox.io/s/vue-antd-template-forked-p3wyu?file=/src/FormModalDemo.vue

@Hucy
Copy link
Author

Hucy commented Oct 25, 2021

手动传递 status 了,就没有使用 prop 的必要了吧 https://codesandbox.io/s/vue-antd-template-forked-p3wyu?file=/src/FormModalDemo.vue

不使用 prop 校验规则无法触发

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

No branches or pull requests

2 participants