版本号:
vue/cli:4.5.12
vant:^3.0.10
问题
使用van-field
输入框, 当 type="password"
时, 报以下警告:
Input elements should have autocomplete attributes (suggested: "new-password")
解决方案
<van-field type="password" autocomplete />
参考资料:
强烈建议大家看一下!!里面有很多其他类型,可以了解一番~
input 标签原生的自动完成属性