From 433201b40edf85b95ce66c05cf65e0c9d32a2d18 Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Wed, 23 Feb 2022 11:34:35 +0800 Subject: [PATCH] Add indicator attribute Signed-off-by: yaoyuchi --- api/@internal/component/ets/swiper.d.ts | 60 +++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/api/@internal/component/ets/swiper.d.ts b/api/@internal/component/ets/swiper.d.ts index 6e7d39b9f7..7a2f260169 100644 --- a/api/@internal/component/ets/swiper.d.ts +++ b/api/@internal/component/ets/swiper.d.ts @@ -73,6 +73,60 @@ interface SwiperInterface { (controller?: SwiperController): SwiperAttribute; } +/** + * Setting indicator style navigation. + * @since 8 + */ +declare interface IndicatorStyle { + /** + * Set the indicator to the left. + * @since 8 + */ + left?: Length; + + /** + * Set the indicator to the top. + * @since 8 + */ + top?: Length; + + /** + * Set the indicator to the right. + * @since 8 + */ + right?: Length; + + /** + * Set the indicator to the bottom. + * @since 8 + */ + bottom?: Length; + + /** + * Set the indicator size. + * @since 8 + */ + size?: Length; + + /** + * Setting indicator style mask. + * @since 8 + */ + mask?: boolean; + + /** + * Set the indicator color. + * @since 8 + */ + color?: ResourceColor; + + /** + * Set the navigation point color. + * @since 8 + */ + selectedColor?: ResourceColor; +} + /** * @since 7 */ @@ -183,6 +237,12 @@ declare class SwiperAttribute extends CommonMethod { * @since 7 */ onChange(event: (index: number) => void): SwiperAttribute; + + /** + * Setting indicator style navigation. + * @since 8 + */ + indicatorStyle(value?: IndicatorStyle): SwiperAttribute; } declare const Swiper: SwiperInterface; -- Gitee