Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
陈剑华
2024-08-29 14:58:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
133d9a5ade2064a49a3ff1786eb5fd0927f8b799
133d9a5a
1 parent
1aad8419
fix: 信息流卡片分割线逻辑优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
View file @
133d9a5
...
...
@@ -83,21 +83,21 @@ export struct CompParser {
})
}
@Builder
beforeDevider() {
if (
this.compDTO.compStyle === CompStyle.Card_09 ||
this.compDTO.compStyle === CompStyle.Zh_Single_Column_09 ||
this.compDTO.compStyle === CompStyle.Zh_Single_Row_04 ||
this.compDTO.compStyle === CompStyle.Zh_Single_Row_06
) {
if (this.compDTO.compStyle === this.nextCompDTO.compStyle) {
Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 })
} else {
Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6})
}
}
}
// @Builder
// beforeDevider() {
// if (
// this.compDTO.compStyle === CompStyle.Card_09 ||
// this.compDTO.compStyle === CompStyle.Zh_Single_Column_09 ||
// this.compDTO.compStyle === CompStyle.Zh_Single_Row_04 ||
// this.compDTO.compStyle === CompStyle.Zh_Single_Row_06
// ) {
// if (this.compDTO.compStyle === this.nextCompDTO.compStyle) {
// Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 })
// } else {
// Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6})
// }
// }
// }
@Builder
behindDevider() {
...
...
@@ -113,7 +113,11 @@ export struct CompParser {
Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6})
}
} else if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) {
Divider().strokeWidth(1).color('#f5f5f5').width('120%').margin({left: -6})
if (this.compIndex === 0) {
Divider().strokeWidth(1).color('#f5f5f5').width('120%').margin({left: -6})
} else {
Divider().strokeWidth(5).color('#f5f5f5').width('120%').margin({left: -6})
}
} else if (this.compDTO?.operDataList?.[0]?.appStyle === CompStyle.Card_10) {
// 大专题
if (this.nextCompDTO?.operDataList?.[0]?.appStyle === CompStyle.Card_10) {
...
...
@@ -141,7 +145,7 @@ export struct CompParser {
@Builder
componentBuilder() {
this.beforeDevider();
//
this.beforeDevider();
if (this.compDTO.operDataList[0]?.objectType !== '3' &&
this.compDTO.operDataList[0]?.objectType !== '13') { //暂时屏蔽活动和音频详情入口
...
...
Please
register
or
login
to post a comment