Showing
1 changed file
with
4 additions
and
6 deletions
| @@ -109,13 +109,12 @@ struct Index { | @@ -109,13 +109,12 @@ struct Index { | ||
| 109 | Stack({ alignContent: Alignment.End }) { | 109 | Stack({ alignContent: Alignment.End }) { |
| 110 | Column() { //标题 时间 进度条 | 110 | Column() { //标题 时间 进度条 |
| 111 | Marquee({ | 111 | Marquee({ |
| 112 | - start: this.start, | 112 | + start: true, |
| 113 | step: 5, | 113 | step: 5, |
| 114 | loop: Number.POSITIVE_INFINITY, | 114 | loop: Number.POSITIVE_INFINITY, |
| 115 | fromStart: true, | 115 | fromStart: true, |
| 116 | src: this.audioTitle | 116 | src: this.audioTitle |
| 117 | }) | 117 | }) |
| 118 | - .marqueeUpdateStrategy(MarqueeUpdateStrategy.DEFAULT) | ||
| 119 | .width("60%") | 118 | .width("60%") |
| 120 | .height(20) | 119 | .height(20) |
| 121 | .fontColor('#222222') | 120 | .fontColor('#222222') |
| @@ -126,10 +125,9 @@ struct Index { | @@ -126,10 +125,9 @@ struct Index { | ||
| 126 | // .onStart(() => { | 125 | // .onStart(() => { |
| 127 | // console.info('Marquee animation complete onStart') | 126 | // console.info('Marquee animation complete onStart') |
| 128 | // }) | 127 | // }) |
| 129 | - .onBounce(() => { | ||
| 130 | - console.info('Marquee animation complete onBounce') | ||
| 131 | - this.start = false | ||
| 132 | - }) | 128 | + // .onBounce(() => { |
| 129 | + // console.info('Marquee animation complete onBounce') | ||
| 130 | + // }) | ||
| 133 | // .onFinish(() => { | 131 | // .onFinish(() => { |
| 134 | // console.info('Marquee animation complete onFinish') | 132 | // console.info('Marquee animation complete onFinish') |
| 135 | // }) | 133 | // }) |
-
Please register or login to post a comment