Select([
{ value: Constant.arrayAccount[0] },
{ value: Constant.arrayAccount[1] },
{ value: Constant.arrayAccount[2] },
{ value: Constant.arrayAccount[3] },
{ value: Constant.arrayAccount[4] },
{ value: Constant.arrayAccount[5] }])
.selected(this.index)
.value(this.accountTypeStr)
.font({ size: 16 })
.fontColor('#222222')
.backgroundColor(Color.White)
.selectedOptionFont({ size: 16 })
.optionFont({ size: 16 })
.space(this.space)
.arrowPosition(this.arrowPosition)
.menuAlign(MenuAlignType.START, { dx: 0, dy: 0 })
.optionWidth(100)
.optionHeight(220)
.margin({ left: 5 })
Text('密 码')
.fontSize(16)
.fontColor('#222222')
.textAlign(TextAlign.Start)
这两个同样设置#222222 颜色,但Select变粗了
select组件设置.font({ size: 16,weight: FontWeight.Normal})就可以了