From 121e305866cc90f2ad48047c92dcbbeab72cf873 Mon Sep 17 00:00:00 2001 From: zernonia Date: Sat, 11 Jan 2025 15:43:54 +0800 Subject: [PATCH] docs: update tooltip cursor behavior, docs gen --- docs/components/examples/TooltipCursor/index.vue | 1 + docs/content/meta/SelectItem.md | 8 ++++++++ docs/content/meta/TooltipContent.md | 12 ++++++++++++ 3 files changed, 21 insertions(+) diff --git a/docs/components/examples/TooltipCursor/index.vue b/docs/components/examples/TooltipCursor/index.vue index 90c22a502..71d4757c7 100644 --- a/docs/components/examples/TooltipCursor/index.vue +++ b/docs/components/examples/TooltipCursor/index.vue @@ -42,6 +42,7 @@ const position = computed(() => ({ side="top" :side-offset="12" class="bg-card px-4 py-2 rounded-md text-sm border border-muted-foreground/30" + update-position-strategy="always" > Following diff --git a/docs/content/meta/SelectItem.md b/docs/content/meta/SelectItem.md index c4ba2e8da..93a452c0c 100644 --- a/docs/content/meta/SelectItem.md +++ b/docs/content/meta/SelectItem.md @@ -33,3 +33,11 @@ 'required': true } ]" /> + + diff --git a/docs/content/meta/TooltipContent.md b/docs/content/meta/TooltipContent.md index 4f692412c..94e811368 100644 --- a/docs/content/meta/TooltipContent.md +++ b/docs/content/meta/TooltipContent.md @@ -68,6 +68,12 @@ 'type': 'boolean', 'required': false }, + { + 'name': 'positionStrategy', + 'description': '

The type of CSS position property to use.

\n', + 'type': '\'fixed\' | \'absolute\'', + 'required': false + }, { 'name': 'side', 'description': '

The preferred side of the trigger to render against when open.\nWill be reversed when collisions occur and avoidCollisions\nis enabled.

\n', @@ -86,6 +92,12 @@ 'description': '

The sticky behavior on the align axis. partial will keep the\ncontent in the boundary as long as the trigger is at least partially\nin the boundary whilst "always" will keep the content in the boundary\nregardless.

\n', 'type': '\'partial\' | \'always\'', 'required': false + }, + { + 'name': 'updatePositionStrategy', + 'description': '

Strategy to update the position of the floating element on every animation frame.

\n', + 'type': '\'always\' | \'optimized\'', + 'required': false } ]" />