chenjun

人民号-我的关注横划卡 去掉阴影 增加边框

@Component
//人民号-我的关注横划卡-头像
export struct PeopleShipHomePageHeadComponent {
@State diameter: number = 30
@State iconDiameter: number = 10
... ... @@ -13,10 +14,15 @@ export struct PeopleShipHomePageHeadComponent {
.width(this.diameter)
.height(this.diameter)
.borderRadius(this.diameter/2)
.borderWidth('0.5vp')
.borderStyle(BorderStyle.Solid)
.shadow({radius: 10, color: '#222226bd'})
.borderColor(Color.White)
// .borderWidth('0.5vp')
.border({
width: 0.5,
color: '#0D000000', // 5% 透明度的黑色
style: BorderStyle.Solid
})
// .borderStyle(BorderStyle.Solid)
// .shadow({radius: 10, color: '#222226bd'})
// .borderColor(Color.White)
.objectFit(ImageFit.Cover)
.backgroundColor(Color.White)
if(this.authIcon.length > 0 ) {
... ...