Vue3 警告:[Vue warn]: Extraneous non-props attributes (tabindex, aria-describedby, class, style) we...

Vue 警告

[Vue warn]: Extraneous non-props attributes (tabindex, aria-describedby, class, style) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. 
  at  
  at  
  at  
  at  
  at  > 
  at  
  at  
  at  ref=Ref< undefined > > 
  at  
  at 

解决方案:

svg-icon 组件使用一个元素进行包裹即可

你可能感兴趣的:(Vue3 警告:[Vue warn]: Extraneous non-props attributes (tabindex, aria-describedby, class, style) we...)