From 0ce535fa671bab13f6c1b5cefea69a8d1db5bb27 Mon Sep 17 00:00:00 2001 From: s3xysteak Date: Fri, 11 Oct 2024 18:00:08 +0800 Subject: [PATCH] feat: make options `placement` and `offset` of `useLocated` reactive --- src/core/components/Located/demo.vue | 14 ++++++++++++++ src/core/components/Located/index.vue | 16 +++++++++++----- src/core/composables/useLocated/index.ts | 20 +++++++++++--------- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/src/core/components/Located/demo.vue b/src/core/components/Located/demo.vue index 9ecfa67..a6d8326 100644 --- a/src/core/components/Located/demo.vue +++ b/src/core/components/Located/demo.vue @@ -33,6 +33,9 @@ viewer.entities.add({ disableDepthTestDistance: Number.POSITIVE_INFINITY, }, }) + +const left = ref(0) +const top = ref(0)