From 593a45b71ffd96a3284fe12a17208d3c5f025937 Mon Sep 17 00:00:00 2001 From: lanshouren Date: Wed, 5 Mar 2025 10:37:23 +0800 Subject: [PATCH] add align/LocalizedAlignment Signed-off-by: lanshouren Change-Id: I7a8f5cd8bf9abc0211a43acb6ccaa20ef4069942 --- api/@internal/component/ets/common.d.ts | 13 +++ api/@internal/component/ets/enums.d.ts | 103 ++++++++++++++++++++++++ 2 files changed, 116 insertions(+) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index b71d19bc53..d519087fde 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -22534,6 +22534,19 @@ declare class CommonMethod { */ align(value: Alignment): T; + /** + * align + * + * @param { Alignment | LocalizedAlignment } alignment + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + align(alignment: Alignment | LocalizedAlignment): T; + /** * position * diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts index 57039794ad..e4333bd6b0 100644 --- a/api/@internal/component/ets/enums.d.ts +++ b/api/@internal/component/ets/enums.d.ts @@ -3690,6 +3690,109 @@ declare enum Alignment { BottomEnd, } +/** + * Alignment enumeration description. + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ +declare enum LocalizedAlignment { + /** + * Top Start. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + TOP_START = "top_start", + /** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + TOP = "top", + /** + * Top tail end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + TOP_END = "top_end", + /** + * The starting end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + START = "start", + /** + * Center horizontal and vertical. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + CENTER = "center", + /** + * The tail end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + END = "end", + /** + * Bottom starting end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + BOTTOM_START = "bottom_start", + /** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + BOTTOM = "bottom", + /** + * Bottom end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + BOTTOM_END = "bottom_end", +} + /** * TransitionType enumeration description. * -- Gitee