From 466cb862699269f360c60356f9465ece8acf558c Mon Sep 17 00:00:00 2001 From: wpp <58198665+879356503@users.noreply.github.com> Date: Tue, 25 Mar 2025 19:21:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?CodeCheck=E9=81=97=E7=95=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 12 +++++++----- entry/src/main/ets/utils/BreakpointType.ets | 6 +++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 0e2409d..e222d39 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -21,9 +21,9 @@ import { DoubleTabAdaptiveCenteringIndex } from './DoubleTabAdaptiveCenteringInd import { BreakpointType } from '../utils/BreakpointType'; class DirectoryItem { - title: ResourceStr = ''; - uri: string = ''; - id: string = ''; + public title: ResourceStr = ''; + public uri: string = ''; + public id: string = ''; } @Entry @@ -114,9 +114,11 @@ struct Index { .width(new BreakpointType($r('app.string.fullwidth'), $r('app.float.index_button_width_md'), $r('app.float.index_button_width_lg')).getValue(this.breakPoint)) .padding({ - left: new BreakpointType($r('app.float.index_button_width_sm'), $r('app.float.index_button_padding_md_lg'), + left: new BreakpointType($r('app.float.index_button_width_sm'), + $r('app.float.index_button_padding_md_lg'), $r('app.float.index_button_padding_md_lg')).getValue(this.breakPoint), - right: new BreakpointType($r('app.float.index_button_width_sm'), $r('app.float.index_button_padding_md_lg'), + right: new BreakpointType($r('app.float.index_button_width_sm'), + $r('app.float.index_button_padding_md_lg'), $r('app.float.index_button_padding_md_lg')).getValue(this.breakPoint) }) } diff --git a/entry/src/main/ets/utils/BreakpointType.ets b/entry/src/main/ets/utils/BreakpointType.ets index df1647a..5838943 100644 --- a/entry/src/main/ets/utils/BreakpointType.ets +++ b/entry/src/main/ets/utils/BreakpointType.ets @@ -14,9 +14,9 @@ */ export class BreakpointType { - sm: T; - md: T; - lg: T; + private sm: T; + private md: T; + private lg: T; constructor(sm: T, md: T, lg: T) { this.sm = sm; -- Gitee From 6517f4c89081f989bc1c15ba61d52255c33bdeda Mon Sep 17 00:00:00 2001 From: wpp <58198665+879356503@users.noreply.github.com> Date: Tue, 25 Mar 2025 19:38:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9export=E4=B8=BAfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/module.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 6c07d9d..4ce1318 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -21,7 +21,7 @@ "label": "$string:EntryAbility_label", "startWindowIcon": "$media:startIcon", "startWindowBackground": "$color:start_window_background", - "exported": true, + "exported": false, "skills": [ { "entities": [ -- Gitee