TabChatComponent.ets
477 Bytes
@Component
export struct TabChatComponent {
arr: string[] = []
aboutToAppear(): void {
for (let index = 0; index < 80; index++) {
this.arr.push(index + '')
}
}
build() {
List() {
ForEach(this.arr, (item: string) => {
ListItem() {
Column() {
Text(item)
Divider().height(10).width('100%')
}
.backgroundColor(Color.Gray)
}
})
}
}
aboutToDisappear(): void {
}
}