Files
harmony/features/mypage/src/main/ets/view/MyPageSectionItem.ets
T
2025-05-09 15:47:54 +08:00

20 lines
439 B
Plaintext

import { MyPageSectionClass } from "../model/MyPageSectionClass"
@Component
export struct MyPageSectionItem {
@Prop sectionItem: MyPageSectionClass;
build() {
Column(){
Image(this.sectionItem.imageSrc)
.backgroundColor(Color.Gray)
.width(35).height(35)
.borderRadius(17.5)
Text(this.sectionItem.title)
.fontSize(12)
.fontColor(Color.Black)
.margin({top:6})
}
}
}