From 800ac5063f7c83c759d92e13ea16fd351fbb4f49 Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Wed, 9 Feb 2022 17:51:00 +0800 Subject: [PATCH 1/2] add badge attribute of visible status Signed-off-by: yaoyuchi --- api/@internal/component/ets/badge.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/@internal/component/ets/badge.d.ts b/api/@internal/component/ets/badge.d.ts index a8e9684092..6d8d147a58 100644 --- a/api/@internal/component/ets/badge.d.ts +++ b/api/@internal/component/ets/badge.d.ts @@ -137,6 +137,11 @@ interface BadgeInterface { * @since 7 */ (value: BadgeParamWithString): BadgeAttribute; + /** + * value: visible status of badge. + * @since 7 + */ + visible(value?: boolean) : BadgeAttribute; } /** -- Gitee From 6687bbba843b8a4dbb7ba826fba26c3faca9949f Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Fri, 18 Feb 2022 15:54:18 +0800 Subject: [PATCH 2/2] modify curve attribute param Signed-off-by: yaoyuchi --- api/@internal/component/ets/swiper.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@internal/component/ets/swiper.d.ts b/api/@internal/component/ets/swiper.d.ts index 6e7d39b9f7..e100987aa5 100644 --- a/api/@internal/component/ets/swiper.d.ts +++ b/api/@internal/component/ets/swiper.d.ts @@ -177,7 +177,7 @@ declare class SwiperAttribute extends CommonMethod { * Called when sliding is curve * @since 8 */ - curve(value: Curve | string): SwiperAttribute; + curve(value: Curve | Curves): SwiperAttribute; /** * Called when the index value changes. * @since 7 -- Gitee