diff --git a/spx-gui/src/components/editor/common/EditorList.vue b/spx-gui/src/components/editor/common/EditorList.vue
index 6ab8d41ef..10a764f79 100644
--- a/spx-gui/src/components/editor/common/EditorList.vue
+++ b/spx-gui/src/components/editor/common/EditorList.vue
@@ -4,26 +4,19 @@
-
+
+
+
+
+
+ {{ addText }}
+
-
-
-
-
-
-
- {{ addText }}
-
-
+
-
-
+
@@ -33,11 +26,10 @@
import { computed } from 'vue'
import {
UIIcon,
- UIDropdown,
- UITooltip,
type Color,
useUIVariables,
- getCssVars
+ getCssVars,
+ UIDropdownWithTooltip
} from '@/components/ui'
const props = defineProps<{
diff --git a/spx-gui/src/components/editor/stage/BackdropDetail.vue b/spx-gui/src/components/editor/stage/BackdropDetail.vue
index 52c5dd43b..079bb1c47 100644
--- a/spx-gui/src/components/editor/stage/BackdropDetail.vue
+++ b/spx-gui/src/components/editor/stage/BackdropDetail.vue
@@ -8,7 +8,7 @@
diff --git a/spx-gui/src/components/ui/UITooltip.vue b/spx-gui/src/components/ui/UITooltip.vue
index 40942397f..2e40b57ba 100644
--- a/spx-gui/src/components/ui/UITooltip.vue
+++ b/spx-gui/src/components/ui/UITooltip.vue
@@ -1,5 +1,12 @@
-
+ emit('update:visible', v)"
+ >
@@ -16,12 +23,18 @@ export type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-sta
withDefaults(
defineProps<{
placement?: Placement
+ visible?: boolean
}>(),
{
- placement: 'top'
+ placement: 'top',
+ visible: undefined
}
)
+const emit = defineEmits<{
+ 'update:visible': [boolean]
+}>()
+
const attachTo = usePopupContainer()
diff --git a/spx-gui/src/components/ui/index.ts b/spx-gui/src/components/ui/index.ts
index 00a9c54bd..affc6a070 100644
--- a/spx-gui/src/components/ui/index.ts
+++ b/spx-gui/src/components/ui/index.ts
@@ -31,3 +31,4 @@ export * from './tab'
export { default as UICode } from './UICode.vue'
export { default as UIButtonGroup } from './UIButtonGroup.vue'
export { default as UIButtonGroupItem } from './UIButtonGroupItem.vue'
+export { default as UIDropdownWithTooltip } from './UIDropdownWithTooltip.vue'