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
zhenghy
2024-04-26 19:30:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b5c12762dc3ad1f58b7936fd5b95603595a07598
b5c12762
1 parent
5c0d3b38
图文页评论滚动问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
View file @
b5c1276
...
...
@@ -71,7 +71,7 @@ export struct CommentComponent {
if (this.publishCommentModel.lastCommentModel.parentId == '-1') {
this.allDatas.addFirstItem(model)
//TODO 跳转顶部
}
else
{
}
else
{
//二级评论
this.allDatas.getDataArray().forEach(element => {
if (element.id == this.publishCommentModel.lastCommentModel.rootCommentId) {
...
...
@@ -98,7 +98,7 @@ export struct CommentComponent {
}
.margin({ left: 16 })
.onClick(()
=>
{
.onClick(()
=>
{
// this.allDatas.push(new commentItemModel())
// this.allDatas.addFirstItem(new commentItemModel())
// this.allDatas.reloadData();
...
...
@@ -148,7 +148,7 @@ export struct CommentComponent {
.onClick(() => {
console.log(TAG)
})
},(childItem: commentItemModel, subIndex: number) => JSON.stringify(childItem) + subIndex.toString())
},
(childItem: commentItemModel, subIndex: number) => JSON.stringify(childItem) + subIndex.toString())
}
} else {
ListItemGroup({ header: this.CommentHeaderItem(item, index) }) {
...
...
@@ -163,12 +163,14 @@ export struct CommentComponent {
.onClick(() => {
console.log(TAG)
})
},(childItem: commentItemModel, subIndex: number) => JSON.stringify(childItem) + subIndex.toString())
},
(childItem: commentItemModel, subIndex: number) => JSON.stringify(childItem) + subIndex.toString())
}
}
},(item: commentItemModel, index: number) => JSON.stringify(item) + index.toString())
}.layoutWeight(1)
}, (item: commentItemModel, index: number) => JSON.stringify(item) + index.toString())
}
.enableScrollInteraction(false)
}
}
//获取数据
...
...
Please
register
or
login
to post a comment