!14694 富文本span增加绑定双击和onHover事件

Merge pull request !14694 from 张应祥/master
This commit is contained in:
openharmony_ci 2024-11-16 02:33:35 +00:00 committed by Gitee
commit 441ca19214
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1843,6 +1843,17 @@ declare interface RichEditorGesture {
* @since 12
*/
onLongPress?: Callback<GestureEvent>;
/**
* Trigger a gesture event when a double click event is complete.
*
* @type { ?Callback<GestureEvent> }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @systemapi
* @since 14
*/
onDoubleClick?: Callback<GestureEvent>;
}
/**
@ -2030,6 +2041,17 @@ declare interface RichEditorImageSpanOptions {
* @since 12
*/
gesture?: RichEditorGesture;
/**
* RichEditor onHover.
*
* @type { ?OnHoverCallback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
onHover?: OnHoverCallback;
}
/**
@ -3854,6 +3876,19 @@ declare type MenuOnAppearCallback = (start: number, end: number) => void;
*/
declare type PasteEventCallback = (event?: PasteEvent) => void;
/**
* callback of the on hover event.
*
* @typedef { function } OnHoverCallback
* @param { boolean } status - The hover status
* @param { HoverEvent } event - The event info for hover.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
declare type OnHoverCallback = (status: boolean, event: HoverEvent) => void;
/**
* Provides an interface for writing texts.
*