From af6bb3757386e85992b2de43d436ce39af2b7d70 Mon Sep 17 00:00:00 2001 From: "@feng-yu4279" Date: Thu, 29 May 2025 10:51:56 +0800 Subject: [PATCH] =?UTF-8?q?feat=20(=E6=A0=87=E8=AF=86):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20ComponentEncapsulation=20=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/CommonComponent.ets | 4 ++-- entry/src/main/ets/pages/DialogComponent.ets | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/pages/CommonComponent.ets b/entry/src/main/ets/pages/CommonComponent.ets index 3557ab6..cf19437 100644 --- a/entry/src/main/ets/pages/CommonComponent.ets +++ b/entry/src/main/ets/pages/CommonComponent.ets @@ -42,8 +42,8 @@ struct CommonComponent { .margin({ top: $r('app.float.margin_top') }) .justifyContent(FlexAlign.Start) .alignItems(HorizontalAlign.Center) - .width(CommonConstants.ONE_HUNDRED_PERCENT) - .height(CommonConstants.ONE_HUNDRED_PERCENT) + .width('100%') + .height('100%') } .title(getResourceString($r('app.string.common'), this)) } diff --git a/entry/src/main/ets/pages/DialogComponent.ets b/entry/src/main/ets/pages/DialogComponent.ets index c22dc20..5fb76cc 100644 --- a/entry/src/main/ets/pages/DialogComponent.ets +++ b/entry/src/main/ets/pages/DialogComponent.ets @@ -21,6 +21,7 @@ import { PopViewUtils } from '../model/PopViewUtils'; export function DialogComponentBuilder() { DialogComponent() } +// [Start build_text] @Builder export function buildText(_obj: Object) { Column({ space: 16 }) { @@ -54,6 +55,7 @@ export function buildText(_obj: Object) { .backgroundColor(Color.White) .borderRadius($r('app.float.border_radius')) } +// [End build_text] // [EndExclude dialog_component] @Entry @Component -- Gitee