From dbf190597b58a3e5c1201573b600b4824412264d Mon Sep 17 00:00:00 2001 From: estel <690930@qq.com> Date: Fri, 22 Aug 2025 14:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=E5=88=9D=E6=AD=A5=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .kiro/specs/workflow-drag-drop-fix/tasks.md | 14 ++ app/components/flow-nodes/WorkflowEditor.vue | 152 ++++++++++-------- .../flow-nodes/{index.ts => nodes.ts} | 0 app/layouts/flow.vue | 5 + app/pages/workflows/index.vue | 6 +- 5 files changed, 111 insertions(+), 66 deletions(-) rename app/components/flow-nodes/{index.ts => nodes.ts} (100%) create mode 100644 app/layouts/flow.vue diff --git a/.kiro/specs/workflow-drag-drop-fix/tasks.md b/.kiro/specs/workflow-drag-drop-fix/tasks.md index f7bfdae..d657239 100644 --- a/.kiro/specs/workflow-drag-drop-fix/tasks.md +++ b/.kiro/specs/workflow-drag-drop-fix/tasks.md @@ -34,3 +34,17 @@ - Validate that original nodes remain unchanged in right panel - Test configuration preservation and editing functionality - _Requirements: 1.1, 1.2, 1.3, 1.5, 2.1, 2.2, 3.1, 3.2, 3.3_ + +- [x] 6. Fix workflow node drag and drop reordering + - Enable proper drag and drop functionality for reordering nodes within the workflow panel + - Configure vuedraggable with correct options for internal sorting + - Add proper event handlers for drag operations + - Remove unused drag event handlers to fix linting issues + - _Requirements: 1.2, 1.3, 2.2_ + +- [x] 7. Implement independent scrolling for left and right panels + - Separate scroll containers for left workflow panel and right node library + - Ensure left panel scrolling doesn't affect right panel and vice versa + - Maintain proper layout and responsive behavior + - Fix overflow handling for both panels + - _Requirements: 4.1, 4.2_ diff --git a/app/components/flow-nodes/WorkflowEditor.vue b/app/components/flow-nodes/WorkflowEditor.vue index 5eb4bce..bce628e 100644 --- a/app/components/flow-nodes/WorkflowEditor.vue +++ b/app/components/flow-nodes/WorkflowEditor.vue @@ -53,10 +53,10 @@
-
+

任务流

@@ -69,20 +69,27 @@
-
+