From d4957ac2ec15ddaef1ed5bba1b267a402c92abb6 Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Wed, 3 Sep 2025 09:07:40 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/Com?= =?UTF-8?q?ponentAttributeCompatibilityJudgment.ets.=20=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E9=87=8A=E4=B9=89=E6=94=B9=E4=B8=BA=E8=8B=B1=E6=96=87=E9=87=8A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- .../ets/pages/ComponentAttributeCompatibilityJudgment.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/ComponentAttributeCompatibilityJudgment.ets b/ArkUI/entry/src/main/ets/pages/ComponentAttributeCompatibilityJudgment.ets index 1f80c197..c017c2ae 100644 --- a/ArkUI/entry/src/main/ets/pages/ComponentAttributeCompatibilityJudgment.ets +++ b/ArkUI/entry/src/main/ets/pages/ComponentAttributeCompatibilityJudgment.ets @@ -27,7 +27,7 @@ struct ComponentAttributeCompatibilityJudgment { build() { List() { - // 列表内容 + // List content } .height('100%') .width('100%') @@ -37,10 +37,10 @@ struct ComponentAttributeCompatibilityJudgment { class MyListModifier implements AttributeModifier { applyNormalAttribute(instance: ListAttribute): void { - // 通过deviceInfo的api版本信息进行判断 + // Determine based on the API version information of deviceInfo if (deviceInfo.sdkApiVersion > 14) { - // 要适配的是List组件的backToTop属性 - // instance为List的属性对象,可以通过instance对象对属性进行修改 + // The property to be adapted is the backToTop attribute of the List component + // The instance is an attribute object of the List, and its properties can be modified through the instance instance.backToTop(true); } } -- Gitee From 0d4a58589ded9372325dca003378ba3a4a012d7f Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Mon, 8 Sep 2025 03:17:37 +0000 Subject: [PATCH 2/2] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/Set?= =?UTF-8?q?DifferentAttributes.ets.=20Boolean=E6=94=B9=E4=B8=BAboolean?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets b/ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets index ca4cfc1a..d4255c30 100644 --- a/ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets +++ b/ArkUI/entry/src/main/ets/pages/SetDifferentAttributes.ets @@ -24,7 +24,7 @@ struct TestHeightPage { @State message: string = 'Hello World'; @State myHeight1: number = 30; @State myHeight2: number = 60; - @State flag: Boolean = false + @State flag: boolean = false build() { Column() { Text(this.message) -- Gitee