Showing
2 changed files
with
3 additions
and
0 deletions
| @@ -459,9 +459,11 @@ export struct DetailVideoListPage { | @@ -459,9 +459,11 @@ export struct DetailVideoListPage { | ||
| 459 | .disableSwipe(this.displayDirection === DisplayDirection.VERTICAL || this.showCommentList ? | 459 | .disableSwipe(this.displayDirection === DisplayDirection.VERTICAL || this.showCommentList ? |
| 460 | false : true) | 460 | false : true) |
| 461 | .indicator(false) | 461 | .indicator(false) |
| 462 | + .duration(200) | ||
| 462 | .vertical(true) | 463 | .vertical(true) |
| 463 | .loop(false) | 464 | .loop(false) |
| 464 | .width('100%') | 465 | .width('100%') |
| 466 | + .cachedCount(3) | ||
| 465 | .height('100%') | 467 | .height('100%') |
| 466 | .displayCount(1, true) | 468 | .displayCount(1, true) |
| 467 | .onChange((index: number) => { | 469 | .onChange((index: number) => { |
| @@ -372,6 +372,7 @@ export struct VideoChannelDetail { | @@ -372,6 +372,7 @@ export struct VideoChannelDetail { | ||
| 372 | .curve(Curves.initCurve(Curve.EaseIn)) | 372 | .curve(Curves.initCurve(Curve.EaseIn)) |
| 373 | .width('100%') | 373 | .width('100%') |
| 374 | .height('100%') | 374 | .height('100%') |
| 375 | + .duration(200) | ||
| 375 | .onChange((index: number) => { | 376 | .onChange((index: number) => { |
| 376 | this.currentIndex = index | 377 | this.currentIndex = index |
| 377 | // console.info('onChange==', index.toString()) | 378 | // console.info('onChange==', index.toString()) |
-
Please register or login to post a comment