1. 程式人生 > >vue警告Prop "autocomplete" is passed to component , but the declared prop name is .......

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

vue報警告

Prop "autocomplete" is passed to component <Anonymous>, 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".

原因:

將autocomplete改為auto-complete