From 91f08bd99cbf60e652f81151d337cb85b7757b27 Mon Sep 17 00:00:00 2001 From: zzc0127 Date: Mon, 1 Sep 2025 11:41:03 +0000 Subject: [PATCH] update api/arkui/component/richEditor.static.d.ets. Signed-off-by: zzc0127 --- api/arkui/component/richEditor.static.d.ets | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/api/arkui/component/richEditor.static.d.ets b/api/arkui/component/richEditor.static.d.ets index 0fdacdb521..1890264563 100644 --- a/api/arkui/component/richEditor.static.d.ets +++ b/api/arkui/component/richEditor.static.d.ets @@ -362,11 +362,10 @@ export declare interface PasteEvent { /** * Override system paste event. * - * @type { ?VoidCallback } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - preventDefault?: VoidCallback; + preventDefault(): void; } /** * Defines the text span. @@ -2124,11 +2123,10 @@ export declare interface CutEvent { /** * Prevent system cut event. * - * @type { ?VoidCallback } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - preventDefault?: VoidCallback; + preventDefault(): void; } /** * the callback of copy event. @@ -2140,11 +2138,10 @@ export declare interface CopyEvent { /** * Prevent system cut event. * - * @type { ?VoidCallback } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - preventDefault?: VoidCallback; + preventDefault(): void; } /** * RichEditor url style. -- Gitee