From bd92e97a450bf4146406550f3fd3428f8cf37ae9 Mon Sep 17 00:00:00 2001 From: Tianer Zhou Date: Wed, 27 Sep 2023 09:28:02 +0800 Subject: [PATCH] fix code check Signed-off-by: Tianer Zhou Change-Id: Ib061ec8c99d0f0d07d1e82db72cd8f9eb282f44c --- api/@internal/component/ets/swiper.d.ts | 41 ++++++++++++++++++++----- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/api/@internal/component/ets/swiper.d.ts b/api/@internal/component/ets/swiper.d.ts index e593794b5..c32735e09 100644 --- a/api/@internal/component/ets/swiper.d.ts +++ b/api/@internal/component/ets/swiper.d.ts @@ -180,7 +180,7 @@ declare class Indicator { /** * Define DotIndicator, the indicator type is dot. * - * @extends Indicator + * @extends Indicator * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 @@ -303,7 +303,7 @@ declare type SwiperAutoFill = { /** * Define DigitIndicator, the indicator type is digit. * - * @extends Indicator + * @extends Indicator * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 @@ -670,17 +670,42 @@ declare interface SwiperAnimationEvent { velocity: number; } +/** + * Swiper nested scroll nested mode + + * @enum { number } SwiperNestedScrollMode + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +declare enum SwiperNestedScrollMode { + /** + * Only Self response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ + SELF_ONLY = 0, + + /** + * Self priority response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ + SELF_FIRST = 1, +} + /** * Defines the swiper attribute functions. * - * @extends CommonMethod + * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the swiper attribute functions. * - * @extends CommonMethod + * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 @@ -1089,15 +1114,15 @@ declare class SwiperAttribute extends CommonMethod { onGestureSwipe(event: (index: number, extraInfo: SwiperAnimationEvent) => void): SwiperAttribute; /** - * Called to setting the nested scroll options. + * Called to setting the nested scroll mode. * - * @param { boolean } value - options for nested scrolling. - * @returns { ScrollAttribute } the attribute of the scroll. + * @param { SwiperNestedScrollMode } value - mode for nested scrolling. + * @returns { SwiperAttribute } the attribute of the swiper. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ - nestedScroll(value: boolean): ScrollAttribute; + nestedScroll(value: SwiperNestedScrollMode): SwiperAttribute; } /**