Issue:#I63XQM:list滚动出现crash

Description: The list scrolls to crash
Sig: SIG_Notes
Feature or Bugfix: Bugfix
Binary Source: No
Signed-off-by: mashitao2 <mashitao2@huawei.com>
This commit is contained in:
mashitao2 2022-11-30 16:19:31 +08:00
parent b6400a7191
commit 4107ecb2d0
2 changed files with 3 additions and 3 deletions

View File

@ -384,7 +384,7 @@ struct FolderItemComp {
.textOverflow({ overflow: TextOverflow.Ellipsis })
.flexShrink(1)
.fontColor(FolderUtil.getFolderTextColor(this.selectedFolderData.uuid == this.folderItem.uuid))
Text(this.refreshFlag.toString())
Text(JSON.stringify(this.refreshFlag))
.visibility(Visibility.None) // 用于强制刷新使用
}.width(118)
@ -445,7 +445,7 @@ struct FolderItemComp {
.textOverflow({ overflow: TextOverflow.Ellipsis })
.flexShrink(1)
.fontColor(FolderUtil.getFolderTextColor(this.selectedFolderData.uuid == this.folderItem.uuid))
Text(this.refreshFlag.toString())
Text(JSON.stringify(this.refreshFlag))
.visibility(Visibility.None) // 用于强制刷新使用
}.width(118)

View File

@ -226,7 +226,7 @@ export struct NoteItemComp {
build() {
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text(this.refreshFlag.toString()).visibility(Visibility.None) // 用于强制刷新使用
Text(JSON.stringify(this.refreshFlag)).visibility(Visibility.None) // 用于强制刷新使用
Column({ space: 2 }) {
Row({ space: 8 }) {
Image($r("app.media.verticalBar"))