From 255cffd61dce939fb52ce4dbb15b6d1b53c62aeb Mon Sep 17 00:00:00 2001 From: Zenix Date: Tue, 2 Sep 2025 20:46:30 +0800 Subject: [PATCH] add dragenum Signed-off-by: Zenix --- api/@internal/component/ets/common.d.ts | 9 +++++++++ api/arkui/component/common.static.d.ets | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 819a17790b..daf1b6439e 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -12373,6 +12373,15 @@ declare type DataLoadParams = import('../api/@ohos.data.unifiedDataChannel').def * @since 14 */ declare enum DragResult { + /** + * If the drag is not finished and the result is not set by receiver, return DragResult.UNKNOWN. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + UNKNOWN = -1, /** * If the drag is successful, return DragResult.DRAG_SUCCESSFUL. * diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index 2d46189546..216fa22754 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -4919,6 +4919,13 @@ export type UniformDataType = uniformTypeDescriptor.UniformDataType; * @since 20 */ export declare enum DragResult { + /** + * If the drag is not finished and the result is not set by receiver, return DragResult.UNKNOWN. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + UNKNOWN = -1, /** * If the drag is successful, return DragResult.DRAG_SUCCESSFUL. * -- Gitee