From d487907d80a9a1e892a2b69778e77d3d5a4f7f77 Mon Sep 17 00:00:00 2001 From: kangshihui Date: Mon, 8 Sep 2025 14:33:17 +0800 Subject: [PATCH] =?UTF-8?q?TS=20API=20Image=E7=BB=84=E4=BB=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=86=85=E5=AE=B9=E8=BD=AC=E5=9C=BA=E5=8A=A8=E6=95=88?= =?UTF-8?q?=20Signed-off-by:kangshihui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6617625632ac67fa0980451213206ef9abcca2d1 --- api/@internal/component/ets/image.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts index 43097a46f0..6a7b5a2ad2 100644 --- a/api/@internal/component/ets/image.d.ts +++ b/api/@internal/component/ets/image.d.ts @@ -2271,6 +2271,18 @@ declare class ImageAttribute extends CommonMethod { * @since 21 */ supportSvg2(enable: boolean) : ImageAttribute; + + /** + * Animation effect when the image content changes. + * + * @param { ContentTransitionEffect } transition - Animation effect type + * @returns { ImageAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + contentTransition(transition: ContentTransitionEffect): ImageAttribute; } /** -- Gitee