Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

vue.js - How to stop showing the warning message `[Vue warn]: Extraneous non-props attributes (data-XX) were passed to component...`

I'm using webpack for watching the vue files.

If I put some non-props attributes on the component tag:

<CustomComponent data-XX="foobar"/>

Vue warns this from the console:

`[Vue warn]: Extraneous non-props attributes (data-XX) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`

Can I disable this warning? Because I know what I'm doing...

question from:https://stackoverflow.com/questions/66057909/how-to-stop-showing-the-warning-message-vue-warn-extraneous-non-props-attrib

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...