vue警告Prop “autocomplete” is passed to component , but the declared prop name is …….

Vue4年前 (2020)更新 小马大哥哥
998 0 0

vue报警告

vue警告Prop
控制台警告提示

[Vue tip]: Prop “autocomplete” is passed to component , but the declared prop name is “autoComplete”. Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use “auto-complete” instead of “autoComplete”.

原因如下:

vue警告Prop

将autocomplete改为auto-complete 就不会再有这个警告了

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...