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

╰+哭是因爲堅強的太久メ 2022-05-11 08:33 219阅读 0赞

vue报警告

70

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”.

原因:

70 1

将autocomplete改为auto-complete

发表评论

表情:
评论列表 (有 0 条评论,219人围观)

还没有评论,来说两句吧...

相关阅读