mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-30 10:53:31 +00:00
fix code check
Signed-off-by: Tianer Zhou <zhoutianer@huawei.com> Change-Id: Ib061ec8c99d0f0d07d1e82db72cd8f9eb282f44c
This commit is contained in:
parent
b1780645fd
commit
bd92e97a45
41
api/@internal/component/ets/swiper.d.ts
vendored
41
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
|
||||
@ -1089,15 +1114,15 @@ declare class SwiperAttribute extends CommonMethod<SwiperAttribute> {
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user