Javascript Vue 3:即使存在emits,也会发出警告

Javascript Vue 3:即使存在emits,也会发出警告,javascript,vue.js,Javascript,Vue.js,我收到以下警告: [Vue warn]: Extraneous non-emits event listeners (addData) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event li

我收到以下警告:

[Vue warn]: Extraneous non-emits event listeners (addData) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option. 
  at <UserData onAddData=fn<bound dataSubmit> > 
  at <App>
UserData.vue


添加新用户:
名字*
年龄*
添加
导出默认值{
发出:[“添加数据”],
数据(){
返回{
姓名:“,
年龄:“
}
},
方法:{
提交数据(){
this.$emit(“添加数据”、this.name、this.age)
}
}
}
main.js

从“vue”导入{createApp}
从“./components/UserData.vue”导入用户数据
从“./components/ActiveUser.vue”导入ActiveUser
从“./App.vue”导入应用程序
const-app=createApp(app);
应用程序组件(“活动用户”,ActiveUser);
应用程序组件(“用户数据”,用户数据);
app.mount(“#app”)
它工作正常,但只显示警告


如果我将
emits
部分更改为
emits:[“添加数据”,“添加数据”]
警告将消失。

此部分存在一个开放的错误:


现在,您需要使用
emits:['addData']
来避免警告。

这是一个bug:啊,很高兴知道!你能加上这个作为答案,这样我就可以把它标出来了吗?