mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 09:22:53 +00:00
commit
33f71646fb
44
api/@internal/component/ets/swiper.d.ts
vendored
44
api/@internal/component/ets/swiper.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user