Skip to content

When the form-item has a value, the error message still does not disappear #5086

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

Closed
1 task
wishong opened this issue Dec 27, 2021 · 3 comments
Closed
1 task
Labels

Comments

@wishong
Copy link

wishong commented Dec 27, 2021

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

Version

3.0.0-beta.3

Environment

vue3 vite2

Reproduction link

https://next.antdv.com/docs/vue/changelog-cn

Steps to reproduce

比如封装了一个图片上传组件,且绑定了表单值和rules。

<a-form-item label="图标" name="avatar">
    <upload v-model:files="formModel.avatar" type="avatar" :max="1" :width="80" :height="80" />
</a-form-item>

当我上传完图片之后,会出现rules中的错误提示,但实际上绑定的值已经存在了。
3.0.0-alpha.16不会出现这个问题,3.0.0-beta.1及后续版本后会出现。

What is expected?

值存在,但是出现错误提示

What is actually happening?

不应该出现错误提示

@github-actions github-actions bot changed the title form-item有值时,错误提示还是不消失 When the form-item has a value, the error message still does not disappear Dec 27, 2021
@tangjinzhou
Copy link
Member

自定义组件的规范在 3.0 中有调整,具体查看文档 https://next.antdv.com/components/form-cn#_3-x

alpha 16 之所以没问题是因为一个错误的”修复“,可以查看这个 issue
#4955
beta1中进行了回滚

@wishong
Copy link
Author

wishong commented Dec 28, 2021

ok 已解决 感谢

@wishong wishong closed this as completed Dec 28, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants