From e46079b92cf8b3d41b58844ffdd96f66bafa303b Mon Sep 17 00:00:00 2001 From: wzztoone Date: Mon, 10 Jan 2022 10:20:19 +0800 Subject: [PATCH] add drag event Signed-off-by: wzztoone Change-Id: I5949322a5501f10ff869d4515bc2ba045b0a07b3 --- api/@internal/component/ets/common.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 7c6a28e3fe..8bfd392221 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -1108,32 +1108,32 @@ export declare class CommonMethod { * (To be triggered, press and hold for 170 milliseconds (ms)) * @since 7 */ - onDrag(event: (event?: DragEvent) => void): T; + onDragStart(event: (event?: DragEvent, extraParams?: string) => ((() => any) | void)): T; /** * After binding, a callback is triggered when the component is dragged to the range of the component. * @since 7 */ - onDragEnter(event: (event?: DragEvent) => void): T; + onDragEnter(event: (event?: DragEvent, extraParams?: string) => void): T; /** * After binding, a callback is triggered when the drag moves within the range of a placeable component. * @since 7 */ - onDragMove(event: (event?: DragEvent) => void): T; + onDragMove(event: (event?: DragEvent, extraParams?: string) => void): T; /** * After binding, a callback is triggered when the component is dragged out of the component range. * @since 7 */ - onDragLeave(event: (event?: DragEvent) => void): T; + onDragLeave(event: (event?: DragEvent, extraParams?: string) => void): T; /** * The component bound to this event can be used as the drag release target. * This callback is triggered when the drag behavior is stopped within the scope of the component. * @since 7 */ - onDrop(event: (event?: DragEvent) => void): T; + onDrop(event: (event?: DragEvent, extraParams?: string) => void): T; /** * Add mask text to the current component. The layout is the same as that of the current component. -- Gitee