!7109 swiper新增嵌套滚动接口

Merge pull request !7109 from 周沺耳/dev
This commit is contained in:
openharmony_ci 2023-10-11 15:51:56 +00:00 committed by Gitee
commit 33f71646fb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -180,7 +180,7 @@ declare class Indicator<T> {
/**
* Define DotIndicator, the indicator type is dot.
*
* @extends Indicator
* @extends Indicator<DotIndicator>
* @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<DigitIndicator>
* @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<SwiperAttribute>
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
* Defines the swiper attribute functions.
*
* @extends CommonMethod
* @extends CommonMethod<SwiperAttribute>
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
@ -1087,6 +1112,17 @@ declare class SwiperAttribute extends CommonMethod<SwiperAttribute> {
* @since 10
*/
onGestureSwipe(event: (index: number, extraInfo: SwiperAnimationEvent) => void): SwiperAttribute;
/**
* Called to setting the nested scroll mode.
*
* @param { SwiperNestedScrollMode } value - mode for nested scrolling.
* @returns { SwiperAttribute } the attribute of the swiper.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
*/
nestedScroll(value: SwiperNestedScrollMode): SwiperAttribute;
}
/**