mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
!14694 富文本span增加绑定双击和onHover事件
Merge pull request !14694 from 张应祥/master
This commit is contained in:
commit
441ca19214
35
api/@internal/component/ets/rich_editor.d.ts
vendored
35
api/@internal/component/ets/rich_editor.d.ts
vendored
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user