From 8b66222ac6ac4775d21708444e404083a79840bb Mon Sep 17 00:00:00 2001 From: wangyang2022 Date: Sat, 24 Sep 2022 16:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E8=BF=81=E7=A7=BB=20Signed-o?= =?UTF-8?q?ff-by:=20wangyang2022=20=20Change-Id:?= =?UTF-8?q?=20Ib906a016f89409b675e87ce958facb2faacd6e08?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/component/src/main/ets/components/CusDialogComp.ets | 2 ++ common/component/src/main/ets/components/NoteListComp.ets | 3 +++ 2 files changed, 5 insertions(+) diff --git a/common/component/src/main/ets/components/CusDialogComp.ets b/common/component/src/main/ets/components/CusDialogComp.ets index 3a052a0..5754a04 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 5ba65d8..b6279e1 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) -- Gitee