From d0b96d13b037f397e4e8b756cd5d224960bf296f 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 7f36c1a48f..5452197705 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -12410,6 +12410,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 404022f5a9..7b3d3c01d1 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -4883,6 +4883,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