From 153cea3082320794a591cc15793f496fe531710f Mon Sep 17 00:00:00 2001 From: shanshurong Date: Thu, 21 Jul 2022 10:51:44 +0800 Subject: [PATCH 1/2] add arrow offset for popup Signed-off-by: shanshurong --- api/@internal/component/ets/common.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 70402c47b1..6eb7e66da8 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -1109,6 +1109,12 @@ declare interface PopupOptions { * @since 7 */ onStateChange?: (event: { isVisible: boolean }) => void; + + /** + * The offset of the sharp corner of popup + * @since 9 + */ + arrowOffset?:number; } /** @@ -1157,6 +1163,12 @@ declare interface CustomPopupOptions { * @since 8 */ onStateChange?: (event: { isVisible: boolean }) => void; + + /** + * The offset of the sharp corner of popup + * @since 9 + */ + arrowOffset?:number; } /** -- Gitee From 03fc6866b2966e9ba1632577b6316bb77ad3fe9c Mon Sep 17 00:00:00 2001 From: shanshurong Date: Thu, 21 Jul 2022 10:59:38 +0800 Subject: [PATCH 2/2] add arrow offset for popup Signed-off-by: shanshurong --- api/@internal/component/ets/common.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 6eb7e66da8..8a24e4149d 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -1114,7 +1114,7 @@ declare interface PopupOptions { * The offset of the sharp corner of popup * @since 9 */ - arrowOffset?:number; + arrowOffset?:Length; } /** @@ -1168,7 +1168,7 @@ declare interface CustomPopupOptions { * The offset of the sharp corner of popup * @since 9 */ - arrowOffset?:number; + arrowOffset?:Length; } /** -- Gitee