本文主要是介绍vue3.0父子组件警告Extraneous non-emits event listeners (closeSetDialog) were passed to component but could,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
解决方法:emits[" "],在子组件中声明传递的方法名
完整代码示例:
父组件:
子组件:
这篇关于vue3.0父子组件警告Extraneous non-emits event listeners (closeSetDialog) were passed to component but could的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!