From 649877c33095d7fde08425926f98046fbef0f57d Mon Sep 17 00:00:00 2001 From: SQ Date: Thu, 26 Jun 2025 19:24:56 +0800 Subject: [PATCH] add onScrollStateChanged to swiper Signed-off-by: SQ --- api/@internal/component/ets/swiper.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/@internal/component/ets/swiper.d.ts b/api/@internal/component/ets/swiper.d.ts index 69d57de31c..d5b6bf321f 100644 --- a/api/@internal/component/ets/swiper.d.ts +++ b/api/@internal/component/ets/swiper.d.ts @@ -2178,6 +2178,19 @@ declare class SwiperAttribute extends CommonMethod { */ onUnselected(event: Callback): SwiperAttribute; + /** + * Called when the scroll state of the swiper changed. + * + * @param { Callback } event - callback to notify the change of the scroll state. + * @returns { SwiperAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + onScrollStateChanged(event: Callback): SwiperAttribute + /** * Called when the swiper animation start. * -- Gitee