From e35be0e62ab9391de62c5e13977854bf027ebb7a Mon Sep 17 00:00:00 2001 From: yeyinglong_admin Date: Tue, 5 Aug 2025 21:22:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E7=BB=84=E4=BB=B6API?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=AE=9E=E7=8E=B0=E4=B8=80=E8=87=B4=E6=80=A7?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yeyinglong_admin --- api/@internal/component/ets/grid.d.ts | 13 ++++++++++++- api/@internal/component/ets/list.d.ts | 19 +++++++++++++++++-- api/@internal/component/ets/water_flow.d.ts | 13 ++++++++++++- 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/api/@internal/component/ets/grid.d.ts b/api/@internal/component/ets/grid.d.ts index efd47c1af2..a5d4083890 100644 --- a/api/@internal/component/ets/grid.d.ts +++ b/api/@internal/component/ets/grid.d.ts @@ -1440,7 +1440,18 @@ declare class GridAttribute extends ScrollableCommonMethod { * @atomicservice * @since 11 */ - onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): GridAttribute; + /** + * Called when scrolling begin each frame. + * Anonymous Object Rectification. + * + * @param { OnScrollFrameBeginCallback } event - callback function, triggered when the scrolling begin each frame. + * @returns { GridAttribute } Returns the instance of the GridAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + onScrollFrameBegin(event: OnScrollFrameBeginCallback): GridAttribute; /** * Called when scrolling begin each frame. diff --git a/api/@internal/component/ets/list.d.ts b/api/@internal/component/ets/list.d.ts index 1f4439f34f..15d7f815e6 100644 --- a/api/@internal/component/ets/list.d.ts +++ b/api/@internal/component/ets/list.d.ts @@ -2678,7 +2678,8 @@ declare class ListAttribute extends ScrollableCommonMethod { */ /** * Triggered when the list starts to scroll. The input parameters indicate the amount by which the list will scroll. - * The event handler then works out the amount by which the list needs to scroll based on the real-world situation and returns the result. + * The event handler then works out the amount by which the list needs to scroll based on the real-world situation + * and returns the result. * * @param { function } event * @returns { ListAttribute } @@ -2688,7 +2689,21 @@ declare class ListAttribute extends ScrollableCommonMethod { * @atomicservice * @since 11 */ - onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ListAttribute; + /** + * Triggered when the list starts to scroll. The input parameters indicate the amount by which the list will scroll. + * The event handler then works out the amount by which the list needs to scroll based on the real-world situation + * and returns the result. + * Anonymous Object Rectification. + * + * @param { OnScrollFrameBeginCallback } event - callback function, triggered when the scrolling begin each frame. + * @returns { ListAttribute } Returns the instance of the ListAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + onScrollFrameBegin(event: OnScrollFrameBeginCallback): ListAttribute; /** * Called when scrolling begin each frame. diff --git a/api/@internal/component/ets/water_flow.d.ts b/api/@internal/component/ets/water_flow.d.ts index 98eb139e4a..a46ceed804 100644 --- a/api/@internal/component/ets/water_flow.d.ts +++ b/api/@internal/component/ets/water_flow.d.ts @@ -945,7 +945,18 @@ declare class WaterFlowAttribute extends ScrollableCommonMethod { offsetRemain: number }): WaterFlowAttribute; + /** + * Called when scrolling begin each frame. + * Anonymous Object Rectification. + * + * @param { OnScrollFrameBeginCallback } event - callback function, triggered when the scrolling begin each frame. + * @returns { WaterFlowAttribute } the attribute of the water flow. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + onScrollFrameBegin(event: OnScrollFrameBeginCallback): WaterFlowAttribute; /** * Called when scrolling begin each frame. -- Gitee