diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 818196a1cd752dff7b7f39a3e1d0175fff238f4d..baa90bb2b8fca48d3e9fa8c5d7276a9278e8d600 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 d09e9c8aeb44f79fa7296bedd00df7dd659a3ed1..9407e27f7cd4cfadd51e1228241c59a2fa5e418d 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