uniapp 密码输入框 type=“password“ 控制台报错(控制台警告) Password field is not contained in a form
【代码】uniapp 密码输入框 type=“password“ 控制台报错(控制台警告) Password field is not contained in a form。
·
uniapp
<view class="flex align-center justify-center inpBox password" >
<text class="color2 text-df " style="width: 200rpx;">新密码</text>
<input v-model.trim="dataForm.newPassword" @blur="newPasswordChange" placeholder="必填,至少6位" class="inputbox flex-sub" type="text" >
</view>
<style scoped>
.password ::v-deep .uni-input-input{
-webkit-text-security: disc;
text-security: disc;
}
</style>
antd vue
<div class="password " >
<a-input v-model.trim="dataForm.password" style="width: 80%;" @blur="newPasswordChange" />
</div>
.password ::v-deep input {
-webkit-text-security: disc;
text-security: disc;
}
更多推荐


所有评论(0)