王士厅

电子报骨架屏修改

... ... @@ -49,7 +49,7 @@ export struct ENewspaperItemComponent {
})
.objectFit(ImageFit.Fill)
.zIndex(10)
newsSkeleton()
newsSkeleton({showBottom: false})
.visibility(this.isShowSkeleton ? Visibility.Visible : Visibility.None)
.width('100%')
.zIndex(1)
... ...
... ... @@ -6,6 +6,7 @@
@Component
export struct newsSkeleton {
@State quantity: Array<number> = [1, 2, 3,]
@State showBottom: boolean = true
build() {
Row() {
... ... @@ -116,10 +117,11 @@ export struct newsSkeleton {
right: 15,
left: 15
})
if (this.showBottom) {
Column().backgroundColor('#CBCBCB').height(5).width(339)
Column().backgroundColor('#909090').height(5).width(326)
}
}
.width('100%')
}
.height('100%')
... ...