From 220eb9e4be4ea18a2b7a44dbd6b2b97553bb4413 Mon Sep 17 00:00:00 2001 From: liyi0309 Date: Mon, 14 Apr 2025 21:05:49 +0800 Subject: [PATCH] =?UTF-8?q?tips=E8=B7=9F=E9=9A=8F=E9=BC=A0=E6=A0=87?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=20Signed-off-by:=20liyi0309?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@internal/component/ets/common.d.ts | 12 ++++++++++ api/@internal/component/ets/enums.d.ts | 31 +++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 818196a1cd..baa90bb2b8 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -15520,6 +15520,18 @@ declare interface TipsOptions { * @since 18 */ arrowHeight?: Dimension; + + /** + * Set the tips posistion. + * + * @type { ?TipsAnchorType } + * @default TipsAnchorType.TARGET + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + showAtAnchor?: TipsAnchorType; } /** diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts index d09e9c8aeb..9407e27f7c 100644 --- a/api/@internal/component/ets/enums.d.ts +++ b/api/@internal/component/ets/enums.d.ts @@ -10438,4 +10438,35 @@ declare enum EventQueryType { * @since 18 */ ON_CLICK = 0, +} + +/** + * Tips show position type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ +declare enum TipsAnchorType { + /** + * Tips display position based on bound component. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + TARGET = 0, + + /** + * Tips display position based on cursor position. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + CURSOR = 1, } \ No newline at end of file -- Gitee