diff --git a/components/DraggableWindow.vue b/components/DraggableWindow.vue index 3844f5d..e51039f 100644 --- a/components/DraggableWindow.vue +++ b/components/DraggableWindow.vue @@ -9,7 +9,9 @@ const props = defineProps<{ height?: string; }>(); -const emit = defineEmits(["close"]); +const emit = defineEmits(["close", "min", "maximize", "restore"]); +const title = computed(() => props.title || 'Draggable Window'); + const isDragging = ref(false); const position = ref({ @@ -65,11 +67,17 @@ const stopDrag = () => {

{{ title }}

+