wangliang_wd

feat:优化电子报间距,优化tabs显示错误问题

... ... @@ -199,7 +199,7 @@ export struct ENewspaperListDialog {
.fontColor($r('app.color.color_222222'))
.fontWeight(600)// .maxLines(2)
.margin({
bottom: 12
bottom: 8
})
}
... ...
... ... @@ -195,11 +195,11 @@ export struct BottomNavigationComponent {
getBottomImageKnifeOption(navItem: BottomNavDTO, isSelect: boolean): ImageKnifeOption {
let defaultIcon = this.getBottomLocalIcon(navItem, isSelect)
let url = this.getBottomIcon(navItem, isSelect)
let url = this.getBottomIcon(navItem, isSelect) as string
// Logger.info(TAG, `onChange111, 本地的地址: ${defaultIcon}`);
let imageKnifeOption: ImageKnifeOption = {
loadSrc: url,
loadSrc: url.length > 0?url:defaultIcon,
// 占位图使用本地资源
placeholderSrc: defaultIcon,
// 失败占位图使用本地资源
... ... @@ -215,7 +215,7 @@ export struct BottomNavigationComponent {
return imageKnifeOption
}
private getBottomIcon(navItem: BottomNavDTO, isSelect: boolean): string | Resource {
private getBottomIcon(navItem: BottomNavDTO, isSelect: boolean): string {
if (!navItem) {
return ''
}
... ...