From 51af096f2e5d501b7bb503ebf0f2494ff1916b05 Mon Sep 17 00:00:00 2001 From: rookie4show Date: Mon, 30 Jun 2025 17:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8B=96=E6=8B=BD=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 96 +++------- src/components/flow/ComponentsPanel.vue | 229 ++++++++++++++---------- src/components/flow/FlowEditor.vue | 187 ++----------------- src/ts/useDnD.ts | 100 +++++++++++ 4 files changed, 267 insertions(+), 345 deletions(-) create mode 100644 src/ts/useDnD.ts diff --git a/src/App.vue b/src/App.vue index a6ee4e0..30de3a9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,8 @@ @@ -197,7 +149,7 @@ const activeFileGroups = computed(() => { } .sidebar { - width: 20%; /* 侧边栏宽度 */ + width: 230px; /* 侧边栏宽度 */ background-color: #f0f0f0; /* 背景色 */ flex-shrink: 0; /* 防止侧边栏被压缩 */ overflow-y: auto; /* 允许侧边栏内容滚动 */ diff --git a/src/components/flow/ComponentsPanel.vue b/src/components/flow/ComponentsPanel.vue index e1e526d..99d23be 100644 --- a/src/components/flow/ComponentsPanel.vue +++ b/src/components/flow/ComponentsPanel.vue @@ -1,127 +1,156 @@