Vue3 Extraneous non-props attributes (函数名) were passed to component问题解决 god_year 2021-04-16 2,295 阅读1分钟 解决 关闭警告检测(不推荐) 代码声明(推荐) 在子组件props下加入emits属性,代码如下 emits: { fatherFunctionName<T>(value: T): T { return value } }