鸿蒙的组件
边框
TextInput({placeholder:"用户名"})
.borderRadius(0)
.backgroundColor("white")
.width('80%')
.borderWidth(1)//边框的宽度
.borderColor('#cfdadd')//边框的颜色
.borderStyle(BorderStyle.Solid)//边框的样式
.border({//统一设置样式 边框简写
width:1,
color:'#cfcadd',
style:BorderStyle.Solid
}
居中
.alignItems(HorizontalAlign.Center)//水平居中
.justifyContent(FlexAlign.Center)//垂直居中
多选框
Row(){
Checkbox({name:'isAgree'}).height(14)
Text('阅读并同意携程的').fontSize(12)
Text('《服务协议》 《个人信息保护政策》')
.fontSize(12)
.fontColor('#099fde')
}