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警告

 

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-08-27
  • 2021-06-25
  • 2021-06-10
猜你喜欢
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2021-10-16
  • 2021-08-06
相关资源
相似解决方案