-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
The validation of props.onUpdate:value of components such as input only accepts functions. #5410
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
Comments
添加 inheritAttrs: false, 取消继承合并 |
就是要继承,你却让取消继承,解决问题的方式是消灭问题吗?!! |
Hello @merfais. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch, fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution! 你好 @merfais,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到正确的分支,务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。 |
你的情况应该和我遇到的是类似的 #5414 (comment) |
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. |
Version
undefined
Environment
ant-design-vue": "^3.0.0-beta.3 ""vue": "^3.2.31"
Reproduction link
Steps to reproduce
What is expected?
console中不报错,vue3本身支持了attrs透传和绑定,也支持了事件的合并,因此校验时function是不妥的,也可能是Array
What is actually happening?
console中有校验报错
[Vue warn]: Invalid prop: type check failed for prop "onUpdate:value". Expected Function, got Array
at <AInput value="123" onUpdate:value= (2) [ƒ, ƒ] >
at <AntInput onUpdate:value=fn >
at
The text was updated successfully, but these errors were encountered: