ref |> 解决精选评论底部高度问题
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
1 changed file
with
5 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/QualityCommentsComponent.ets
| @@ -26,7 +26,7 @@ export struct QualityCommentsComponent { | @@ -26,7 +26,7 @@ export struct QualityCommentsComponent { | ||
| 26 | private scroller: Scroller = new Scroller(); | 26 | private scroller: Scroller = new Scroller(); |
| 27 | @State tileOpacity: number = 0; | 27 | @State tileOpacity: number = 0; |
| 28 | firstPositionY: number = 0; | 28 | firstPositionY: number = 0; |
| 29 | - bottomSafeHeight: string = AppStorage.get<number>('bottomSafeHeight') + 'px'; | 29 | + bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0; |
| 30 | topSafeHeight: number = AppStorage.get<number>('topSafeHeight') as number; | 30 | topSafeHeight: number = AppStorage.get<number>('topSafeHeight') as number; |
| 31 | lastWindowColor: string = '#ffffff' | 31 | lastWindowColor: string = '#ffffff' |
| 32 | currentWindowColor: string = '#FF4202' | 32 | currentWindowColor: string = '#FF4202' |
| @@ -247,9 +247,9 @@ export struct QualityCommentsComponent { | @@ -247,9 +247,9 @@ export struct QualityCommentsComponent { | ||
| 247 | ListItem() { | 247 | ListItem() { |
| 248 | if (this.hasMore === false) NoMoreLayout() | 248 | if (this.hasMore === false) NoMoreLayout() |
| 249 | } | 249 | } |
| 250 | - ListItem() { | ||
| 251 | - | ||
| 252 | - }.height(this.bottomSafeHeight) | 250 | + // ListItem() { |
| 251 | + // | ||
| 252 | + // }.height(this.bottomSafeHeight) | ||
| 253 | }.onReachEnd(()=>{ | 253 | }.onReachEnd(()=>{ |
| 254 | this.currentPage++ | 254 | this.currentPage++ |
| 255 | this.getData() | 255 | this.getData() |
| @@ -257,8 +257,7 @@ export struct QualityCommentsComponent { | @@ -257,8 +257,7 @@ export struct QualityCommentsComponent { | ||
| 257 | .margin({ top: 196 }) | 257 | .margin({ top: 196 }) |
| 258 | .height("100%") | 258 | .height("100%") |
| 259 | .width("100%") | 259 | .width("100%") |
| 260 | - // .edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果 | ||
| 261 | - .edgeEffect(EdgeEffect.Spring) | 260 | + .edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果 |
| 262 | .nestedScroll({ | 261 | .nestedScroll({ |
| 263 | scrollForward: NestedScrollMode.PARENT_FIRST, | 262 | scrollForward: NestedScrollMode.PARENT_FIRST, |
| 264 | scrollBackward: NestedScrollMode.SELF_FIRST | 263 | scrollBackward: NestedScrollMode.SELF_FIRST |
-
Please register or login to post a comment