diff --git a/common/component/src/main/ets/components/CusDialogComp.ets b/common/component/src/main/ets/components/CusDialogComp.ets index 3a052a0d4b5c4e665696a7d1970ad4505cfca17b..5754a04c52ea9d10d342f774fa11f6264896f93a 100644 --- a/common/component/src/main/ets/components/CusDialogComp.ets +++ b/common/component/src/main/ets/components/CusDialogComp.ets @@ -69,6 +69,7 @@ export struct NewOrEditFolderDialog { this.isExisted = result }) }) + .restoreId(1) }.margin({ bottom: 4, left: 24, right: 24 }) Divider() @@ -682,6 +683,7 @@ export struct EditTitleDialog { } this.inputName = value }) + .restoreId(2) }.margin({ bottom: 4, left: 24, right: 24 }) diff --git a/common/component/src/main/ets/components/NoteListComp.ets b/common/component/src/main/ets/components/NoteListComp.ets index 5ba65d8a661273cdc382a7accecb847834d6ce21..b6279e157d012ec2804be553103ba114b46fda65 100644 --- a/common/component/src/main/ets/components/NoteListComp.ets +++ b/common/component/src/main/ets/components/NoteListComp.ets @@ -414,6 +414,8 @@ export struct NoteItemListComp { } }, noteItem => noteItem.uuid.toString()) } + .restoreId(4) + .scrollBar(BarState.On) .layoutWeight(1) .listDirection(Axis.Vertical) .edgeEffect(EdgeEffect.Spring) @@ -707,6 +709,7 @@ export struct SearchComp { this.search = true } }) + .restoreId(3) } .backgroundColor(this.longpress ? $r("app.color.search_longpress_bgcolor_f7f8f9") : $r("app.color.color_ffffff")) .height(40)