wangliang_wd

feat:优化视频详情页评论弹出

... ... @@ -20,8 +20,15 @@ export struct CommentListDialogView {
onClose?: () => void
onHeightDidChange?: Callback<number>
@StorageProp('currentBreakpoint') currentBreakpoint: string = 'sm';
@State isPad:boolean = this.currentBreakpoint == "md" || this.currentBreakpoint == "lg"?true:false
aboutToAppear(): void {
this.maxHeight = this.windowHeight - this.windowWidth * 9 / 16
if (this.isPad) {
this.maxHeight = this.windowHeight * 0.6
}else {
this.maxHeight = this.windowHeight - this.windowWidth * 9 / 16
}
}
build() {
... ...