From f184a491573534e4851b7a9bc7d9878f04d6107a Mon Sep 17 00:00:00 2001 From: chenjiafeng10 Date: Mon, 1 Sep 2025 18:15:16 +0800 Subject: [PATCH] ImageAttachment size support vp Signed-off-by: chenjiafeng10 --- api/@internal/component/ets/styled_string.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@internal/component/ets/styled_string.d.ts b/api/@internal/component/ets/styled_string.d.ts index 6aa3b2c4b1..0c18c21ba0 100644 --- a/api/@internal/component/ets/styled_string.d.ts +++ b/api/@internal/component/ets/styled_string.d.ts @@ -1498,6 +1498,17 @@ declare class ImageAttachment { * @since 12 */ readonly size?: SizeOptions; + /** + * Get the imageSize of the StyledString. + * + * @type { ?SizeOptions } - the imageSize of the StyledString in vp unit or undefined + * @readonly + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + readonly sizeInVp?: SizeOptions; /** * Get the ImageSpanAlignment of the StyledString. * -- Gitee