From 17909f2211efed6117054674bafa41303f236553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E6=89=AC?= Date: Sat, 29 Mar 2025 10:40:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A=E4=BF=A1=E6=81=AF=EF=BC=8C=E6=9B=B4=E6=96=B0README?= =?UTF-8?q?=E6=A0=87=E9=A2=98=EF=BC=8C=E7=89=88=E6=9C=AC=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 6 +++--- README.md | 8 ++++---- entry/src/main/ets/view/BottomBarComponent.ets | 14 +++++++------- entry/src/main/ets/view/DetailItemComponent.ets | 8 ++++---- entry/src/main/ets/view/ListItemComponent.ets | 6 +++--- entry/src/main/resources/base/element/string.json | 2 +- entry/src/main/resources/en_US/element/string.json | 2 +- entry/src/main/resources/zh_CN/element/string.json | 2 +- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.en.md b/README.en.md index 3a83920..ac023af 100644 --- a/README.en.md +++ b/README.en.md @@ -31,6 +31,6 @@ This codelab uses the distributed capability. It requires you to add the data ex ## Constraints 1. The sample is only supported on Huawei phones with standard systems. -2. HarmonyOS: HarmonyOS NEXT Developer Beta1 or later. -3. DevEco Studio: DevEco Studio NEXT Developer Beta1 or later. -4. HarmonyOS SDK: HarmonyOS NEXT Developer Beta1 SDK or later. +2. HarmonyOS: HarmonyOS 5.0.0 Release or later. +3. DevEco Studio: DevEco Studio 5.0.0 Release or later. +4. HarmonyOS SDK: HarmonyOS 5.0.0 Release SDK or later. diff --git a/README.md b/README.md index c5b4ed5..37f9b75 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 分布式通讯录 +# 基于分布式键值数据库实现通讯录功能 ## 简介 @@ -31,6 +31,6 @@ ## 约束与限制 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 -2. HarmonyOS系统:HarmonyOS NEXT Developer Beta1及以上。 -3. DevEco Studio版本:DevEco Studio NEXT Developer Beta1及以上。 -4. HarmonyOS SDK版本:HarmonyOS NEXT Developer Beta1 SDK及以上。 +2. HarmonyOS系统:HarmonyOS 5.0.0 Release及以上。 +3. DevEco Studio版本:DevEco Studio 5.0.0 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 5.0.0 Release SDK及以上。 diff --git a/entry/src/main/ets/view/BottomBarComponent.ets b/entry/src/main/ets/view/BottomBarComponent.ets index ad900b7..402bac9 100644 --- a/entry/src/main/ets/view/BottomBarComponent.ets +++ b/entry/src/main/ets/view/BottomBarComponent.ets @@ -33,15 +33,15 @@ function setImageStyle() { @Component export default struct BottomBarComponent { private isAll: boolean = false; - private pageId: string = ''; - private leftClickEvent: (isAll?: boolean) => void = () => { + public pageId: string = ''; + public leftClickEvent: (isAll?: boolean) => void = () => { }; - private rightClickEvent: () => void = () => { + public rightClickEvent: () => void = () => { }; - private leftIcon: Resource = $r('app.media.ic_edit'); - private leftSubtitle: Resource = $r('app.media.ic_delete'); - private rightIcon: Resource = $r('app.media.ic_delete'); - private rightSubtitle: Resource = $r('app.string.delete_text'); + public leftIcon: Resource = $r('app.media.ic_edit'); + public leftSubtitle: Resource = $r('app.media.ic_delete'); + public rightIcon: Resource = $r('app.media.ic_delete'); + public rightSubtitle: Resource = $r('app.string.delete_text'); build() { Column() { diff --git a/entry/src/main/ets/view/DetailItemComponent.ets b/entry/src/main/ets/view/DetailItemComponent.ets index 27af9c7..7c056d3 100644 --- a/entry/src/main/ets/view/DetailItemComponent.ets +++ b/entry/src/main/ets/view/DetailItemComponent.ets @@ -19,10 +19,10 @@ import CommonConstants from '../common/constants/CommonConstants'; export default struct DetailItemComponent { @Link topContent: string; @Link bottomContent: string; - private componentId: number = CommonConstants.PHONE_COMPONENTS_ID; - private bottomSubtitle: Resource = $r('app.string.item_personal_email'); - private leftIcon: Resource = $r('app.media.ic_phone_icon'); - private rightIcon: Resource = $r('app.media.ic_message'); + public componentId: number = CommonConstants.PHONE_COMPONENTS_ID; + public bottomSubtitle: Resource = $r('app.string.item_personal_email'); + public leftIcon: Resource = $r('app.media.ic_phone_icon'); + public rightIcon: Resource = $r('app.media.ic_message'); build() { Column() { diff --git a/entry/src/main/ets/view/ListItemComponent.ets b/entry/src/main/ets/view/ListItemComponent.ets index dfdc320..5b9c9ea 100644 --- a/entry/src/main/ets/view/ListItemComponent.ets +++ b/entry/src/main/ets/view/ListItemComponent.ets @@ -18,14 +18,14 @@ import { ListItemData } from '../viewmodel/ListItemData'; @Component export struct ListItemComponent { - private itemInfo: ListItemData = { + public itemInfo: ListItemData = { id: 0, photo: $r('app.media.ic_men'), name: '', checked: false }; - private isCanCheck = false; - private onCheck: () => void = () => { + public isCanCheck = false; + public onCheck: () => void = () => { }; build() { diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index c85fad0..e435049 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -154,7 +154,7 @@ }, { "name": "distributed_data_sync_reason", - "value": "Allows data exchange between different devices." + "value": "Allow the permission for data exchange between different devices in distributed communication wheel scenarios." }, { "name": "access_service_dm_reason", diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index c85fad0..e435049 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -154,7 +154,7 @@ }, { "name": "distributed_data_sync_reason", - "value": "Allows data exchange between different devices." + "value": "Allow the permission for data exchange between different devices in distributed communication wheel scenarios." }, { "name": "access_service_dm_reason", diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index c2d61ce..f1350db 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -154,7 +154,7 @@ }, { "name": "distributed_data_sync_reason", - "value": "允许不同设备间的数据交换" + "value": "允许分布式通讯轮场景使用不同设备间的数据交换的权限。" }, { "name": "access_service_dm_reason", -- Gitee