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
suchang_wd
2024-07-09 15:03:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
57b1637e9de2349667f21293f5a770a803def541
57b1637e
1 parent
d48cb1c7
feat: 新增宫格卡
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
sight_harmony/commons/wdConstant/src/main/ets/enum/CompStyle.ts
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/EnGridLayout03.ets
sight_harmony/commons/wdConstant/src/main/ets/enum/CompStyle.ts
View file @
57b1637
...
...
@@ -17,6 +17,7 @@ export const enum CompStyle {
Single_Column_06
=
'Single_Column-06'
,
// 留言板卡:/
Grid_Layout_01
=
'Grid_Layout-01'
,
// 横屏宫格卡:视频、直播
Grid_Layout_02
=
'Grid_Layout-02'
,
// 竖屏宫格卡 :视频、直播、榜单
En_Grid_Layout_03
=
'En_Grid_Layout-03 '
,
// 宫格卡
Masonry_Layout_01
=
'Masonry_Layout-01'
,
// 双列瀑布流/瀑布流卡:视频、直播、专题、活动
...
...
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
View file @
57b1637
...
...
@@ -20,6 +20,7 @@ import { ZhSingleRow02 } from './compview/ZhSingleRow02';
import { ZhSingleRow03 } from './compview/ZhSingleRow03';
import { ZhSingleRow04 } from './compview/ZhSingleRow04';
import { ZhSingleRow06 } from './compview/ZhSingleRow06';
import { EnGridLayout03 } from './compview/EnGridLayout03';
import {
HorizontalStrokeCardThreeTwoRadioForMoreComponent
} from './view/HorizontalStrokeCardThreeTwoRadioForMoreComponent';
...
...
@@ -192,6 +193,10 @@ export struct CompParser {
pageName: this.pageName,
compIndex: this.compIndex
});
} else if (this.compDTO.compStyle === CompStyle.En_Grid_Layout_03) {
if (this.compDTO.operDataList.length > this.audioItems.length) {
EnGridLayout03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
}
} else {
// Text(this.compDTO.compStyle)
// .width(CommonConstants.FULL_PARENT)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/EnGridLayout03.ets
0 → 100644
View file @
57b1637
import { ContentDTO } from 'wdBean';
/**
* 精选评论卡
* En_Grid_Layout-03
*/
const TAG = 'En_Grid_Layout_03'
@Entry
@Component
struct EnGridLayout03 {
@State item: ContentDTO | undefined = {} as ContentDTO
build() {
Row(){
// Image(this.item?.previewCoverUrl)
Column(){
// Text(this.item?.title)
// .fontColor(Color.Black)
// .fontWeight(600)
}
.backgroundColor('rgba(128, 128, 128, 0.58)')
.padding(5)
.height(400)
}
}
}
...
...
Please
register
or
login
to post a comment