最近用vue3编写,经常功能可以实现但是浏览器一大堆警告,强迫症看着实在太难受了。。。
其中一个warn是:
[Vue warn]: Extraneous non-emits event listeners (queryList, closeDialog) were passed to component but could not be automati…
[Vue warn]: Extraneous non-props attributes (highlight-current-row, stripe, row-class-name) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
产生问题复现流程: 这是一个自己封…
Vue3element-plus:
报错Extraneous children found when component already has explicitly named default slot.These children will be ignored.vue(39)
可能一:template包裹有误,例:
报错部分: 错误代码…
报错内容
[Vue warn]: Extraneous non-emits event listeners (refreshRelationList) 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 …
今天在重构项目时遇到一个报错Extraneous non-props attributes (xxx) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.,趁有时间整理学习理解一下。 首先的话这不是什么特别严重的报错…
报错截图
[Vue warn]: Extraneous non-props attributes (id) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. at <Detail>
at <AsyncComponentWrapper>
at <PageBody>
at &l…
vue预警以下错误: [Vue warn]: Extraneous non-props attributes (xxxx) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
1.第一种情况,就是你有需要传输一个prop属性的数…