From 57aa0aba186a6d6d0938fcfd7b68449fd6aed87c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Mon, 12 May 2025 21:05:14 +0800 Subject: [PATCH] feat: enhance DraggableWindow component with additional emit events for window control; update hotnews component to handle pending state; modify home link for improved navigation --- components/DraggableWindow.vue | 12 ++++++++++-- components/app/windows/hotnews.vue | 4 +++- pages/app/desktop/index.vue | 6 +++--- pages/home.vue | 2 +- 4 files changed, 17 insertions(+), 7 deletions(-) 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 }}

+