Showing
3 changed files
with
19 additions
and
16 deletions
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | "buildOption": { | 3 | "buildOption": { |
| 4 | "arkOptions": { | 4 | "arkOptions": { |
| 5 | "buildProfileFields": { | 5 | "buildProfileFields": { |
| 6 | - "BUILD_TIME": "" | 6 | + "BUILD_VERSION": "" |
| 7 | } | 7 | } |
| 8 | } | 8 | } |
| 9 | }, | 9 | }, |
| @@ -20,7 +20,7 @@ | @@ -20,7 +20,7 @@ | ||
| 20 | } | 20 | } |
| 21 | }, | 21 | }, |
| 22 | "buildProfileFields": { | 22 | "buildProfileFields": { |
| 23 | - "BUILD_TIME": "" | 23 | + "BUILD_VERSION": "" |
| 24 | } | 24 | } |
| 25 | } | 25 | } |
| 26 | }, | 26 | }, |
| @@ -60,8 +60,8 @@ export struct TopNavigationComponentNew { | @@ -60,8 +60,8 @@ export struct TopNavigationComponentNew { | ||
| 60 | // 传递给page的自动刷新通知 | 60 | // 传递给page的自动刷新通知 |
| 61 | @State autoRefresh2Page: number = 0 | 61 | @State autoRefresh2Page: number = 0 |
| 62 | @State animationDuration: number = 0 | 62 | @State animationDuration: number = 0 |
| 63 | - @State indicatorLeftMargin: number = 0 | ||
| 64 | - @State indicatorWidth: number = 0 | 63 | + // @State indicatorLeftMargin: number = 0 |
| 64 | + // @State indicatorWidth: number = 0 | ||
| 65 | @State isClickMorningEveningPaper: boolean = false | 65 | @State isClickMorningEveningPaper: boolean = false |
| 66 | // 顶部导航栏是否有临时跳转频道数据不 | 66 | // 顶部导航栏是否有临时跳转频道数据不 |
| 67 | @State haveTempTabData: boolean = false | 67 | @State haveTempTabData: boolean = false |
| @@ -304,17 +304,17 @@ export struct TopNavigationComponentNew { | @@ -304,17 +304,17 @@ export struct TopNavigationComponentNew { | ||
| 304 | .padding({ top: $r('app.float.top_tab_item_padding_top'), bottom: $r('app.float.top_tab_item_padding_bottom') }) | 304 | .padding({ top: $r('app.float.top_tab_item_padding_top'), bottom: $r('app.float.top_tab_item_padding_bottom') }) |
| 305 | .maxLines(this.MAX_LINE) | 305 | .maxLines(this.MAX_LINE) |
| 306 | .id(index.toString()) | 306 | .id(index.toString()) |
| 307 | - .onAreaChange((oldValue: Area, newValue: Area) => { | ||
| 308 | - if (this.currentTopNavSelectedIndex === index && | ||
| 309 | - (this.indicatorLeftMargin === 0 || this.indicatorWidth === 0)) { | ||
| 310 | - if (newValue.position.x != undefined) { | ||
| 311 | - let positionX = Number.parseFloat(newValue.position.x.toString()) | ||
| 312 | - this.indicatorLeftMargin = Number.isNaN(positionX) ? 0 : positionX | ||
| 313 | - } | ||
| 314 | - let width = Number.parseFloat(newValue.width.toString()) | ||
| 315 | - this.indicatorWidth = Number.isNaN(width) ? 0 : width | ||
| 316 | - } | ||
| 317 | - }) | 307 | + // .onAreaChange((oldValue: Area, newValue: Area) => { |
| 308 | + // if (this.currentTopNavSelectedIndex === index && | ||
| 309 | + // (this.indicatorLeftMargin === 0 || this.indicatorWidth === 0)) { | ||
| 310 | + // if (newValue.position.x != undefined) { | ||
| 311 | + // let positionX = Number.parseFloat(newValue.position.x.toString()) | ||
| 312 | + // this.indicatorLeftMargin = Number.isNaN(positionX) ? 0 : positionX | ||
| 313 | + // } | ||
| 314 | + // let width = Number.parseFloat(newValue.width.toString()) | ||
| 315 | + // this.indicatorWidth = Number.isNaN(width) ? 0 : width | ||
| 316 | + // } | ||
| 317 | + // }) | ||
| 318 | if (this.currentTopNavSelectedIndex === index) { | 318 | if (this.currentTopNavSelectedIndex === index) { |
| 319 | Row() | 319 | Row() |
| 320 | .width(20) | 320 | .width(20) |
| @@ -171,7 +171,10 @@ export struct BottomNavigationComponent { | @@ -171,7 +171,10 @@ export struct BottomNavigationComponent { | ||
| 171 | // 是否开启一级内存缓存 | 171 | // 是否开启一级内存缓存 |
| 172 | isCacheable: true, | 172 | isCacheable: true, |
| 173 | // 磁盘缓存 | 173 | // 磁盘缓存 |
| 174 | - strategy: new ALL() | 174 | + strategy: new ALL(), |
| 175 | + gif: { | ||
| 176 | + playTimes: 1 | ||
| 177 | + } | ||
| 175 | }; | 178 | }; |
| 176 | return imageKnifeOption | 179 | return imageKnifeOption |
| 177 | } | 180 | } |
-
Please register or login to post a comment