HarmonyOS鸿蒙Next中InputType设置为Password后怎么设置Password输入框的样式?
HarmonyOS鸿蒙Next中InputType设置为Password后怎么设置Password输入框的样式? InputType设置为Password后,设置placeholderColor不生效 怎么把自带Password输入框的去掉样式?
3 回复
可以大致看看
TextInput({ placeholder: '请输入8~20位英文数字密码', text: this.viewModel.password })
.placeholderColor('#999')
.type(InputType.Password)
.showPasswordIcon(false)
.layoutWeight(1)
.borderRadius(0)
.backgroundColor(Color.White)
.fontSize(18)
.maxLength(20)
.padding({ left: 0 })
.onChange((value: string) => {
this.viewModel.password = value
})
更多关于HarmonyOS鸿蒙Next中InputType设置为Password后怎么设置Password输入框的样式?的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html