Showing
1 changed file
with
8 additions
and
13 deletions
| @@ -97,6 +97,14 @@ struct Index { | @@ -97,6 +97,14 @@ struct Index { | ||
| 97 | 97 | ||
| 98 | build() { | 98 | build() { |
| 99 | Stack({ alignContent: Alignment.End }) { | 99 | Stack({ alignContent: Alignment.End }) { |
| 100 | + Progress({ value: 0, total: 100, type: ProgressType.Linear }) | ||
| 101 | + .color("#ED2800") | ||
| 102 | + .backgroundColor($r('app.color.white')) | ||
| 103 | + .width("100%") | ||
| 104 | + .height(3) | ||
| 105 | + .margin({ top: 57 }) | ||
| 106 | + .value(this.progressVal) | ||
| 107 | + .visibility(this.isExpand ? Visibility.Visible : Visibility.Hidden) | ||
| 100 | Stack({ alignContent: Alignment.End }) { | 108 | Stack({ alignContent: Alignment.End }) { |
| 101 | Column() { //标题 时间 进度条 | 109 | Column() { //标题 时间 进度条 |
| 102 | Marquee({ | 110 | Marquee({ |
| @@ -139,13 +147,6 @@ struct Index { | @@ -139,13 +147,6 @@ struct Index { | ||
| 139 | .width("100%") | 147 | .width("100%") |
| 140 | .height(16) | 148 | .height(16) |
| 141 | .margin({ top: 4}) | 149 | .margin({ top: 4}) |
| 142 | - | ||
| 143 | - Progress({ value: this.progressVal, total: 100, type: ProgressType.Capsule }) | ||
| 144 | - .color("#ED2800") | ||
| 145 | - .backgroundColor($r('app.color.white')) | ||
| 146 | - .width("100%") | ||
| 147 | - .height(3) | ||
| 148 | - .margin({ top: 7 }) | ||
| 149 | } | 150 | } |
| 150 | .padding({ | 151 | .padding({ |
| 151 | top: 10, | 152 | top: 10, |
| @@ -241,12 +242,6 @@ struct Index { | @@ -241,12 +242,6 @@ struct Index { | ||
| 241 | ) | 242 | ) |
| 242 | ) | 243 | ) |
| 243 | .borderRadius(4) | 244 | .borderRadius(4) |
| 244 | - .padding({ | ||
| 245 | - top: 10, | ||
| 246 | - bottom: 10, | ||
| 247 | - left: 10, | ||
| 248 | - right: 0 | ||
| 249 | - }) | ||
| 250 | .backgroundColor(Color.White) | 245 | .backgroundColor(Color.White) |
| 251 | } | 246 | } |
| 252 | } | 247 | } |
-
Please register or login to post a comment