Skip to content

使用Checkbox.Group组件时会有vue:warning警告 #3440

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
liulei92 opened this issue Dec 23, 2020 · 5 comments
Closed
1 task

使用Checkbox.Group组件时会有vue:warning警告 #3440

liulei92 opened this issue Dec 23, 2020 · 5 comments
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated

Comments

@liulei92
Copy link

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

Version

2.0.0-rc.5

Environment

vue3.0.3

Reproduction link

https://2x.antdv.com/components/checkbox-cn/

Steps to reproduce

1.使用checkbox.group组件
code:


Online


Promotion


Offline


2.现象
runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Component emitted event "update:value" but it is neither declared in the emits option nor as an "onUpdate:value" prop.

What is expected?

修复 警告问题

What is actually happening?

runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Component emitted event "update:value" but it is neither declared in the emits option nor as an "onUpdate:value" prop.

@sendya
Copy link
Member

sendya commented Dec 23, 2020

image

能提供 codesandbox 复现吗?

@sendya sendya added the 🤔 Need Reproduce We cannot reproduce your problem label Dec 23, 2020
@github-actions
Copy link

Hello @liulei92. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository.Make sure to choose the correct version.

你好 @liulei92, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@liulei92
Copy link
Author

https://codesandbox.io/s/dry-browser-wbo1j?file=/src/App.vue

有点意外,codesanbox没有复现,但项目中控制台会复现这个

ant-design-vue@^2.0.0-rc.4:
version "2.0.0-rc.5"
微信图片_20201224095445

@Amour1688
Copy link
Member

方便提供出现警告的项目代码吗

@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 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated
Projects
None yet
Development

No branches or pull requests

3 participants