标签:not int listen bec 技术 image end code tom
vue3.0子组件 emit 出现警告
Extraneous non-emits event listeners (okUploadImg) 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.
解决方法,需要在emits中定义抛出的事件名
Vue3.0 declare it using the "emits" option警告
标签:not int listen bec 技术 image end code tom
原文地址:https://www.cnblogs.com/chengxiang123/p/14958016.html