vue警告Prop “autocomplete” is passed to component , but the declared prop name is …….
vue报警告
![vue警告Prop](https://www.mgnav.com/wp-content/uploads/2020/05/QQ截图20200509111129-1024x160.jpg)
[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](https://www.mgnav.com/wp-content/uploads/2020/05/QQ截图20200509111524.jpg)
将autocomplete改为auto-complete 就不会再有这个警告了
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...