From ea2d73c411b1d981cf0c9f19981b09ed6ea6ab2a Mon Sep 17 00:00:00 2001 From: zhoutianer Date: Tue, 27 Dec 2022 16:42:22 +0800 Subject: [PATCH] add draggable api Signed-off-by: zhoutianer Change-Id: Ic382cc0bdbc62ac7a5ed20d4e59eb2b9babfe730 --- api/@internal/component/ets/image.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts index b6f309092b..a51948e570 100644 --- a/api/@internal/component/ets/image.d.ts +++ b/api/@internal/component/ets/image.d.ts @@ -155,6 +155,13 @@ declare class ImageAttribute extends CommonMethod { */ copyOption(value: CopyOptions): ImageAttribute; + /** + * Enable image dragging. + * Default value is false. + * @since 9 + */ + draggable(value: boolean): ImageAttribute; + /** * This callback is triggered when an image is successfully loaded. * The size of the image source that is successfully loaded is returned, in pixels. -- Gitee