From 916e6f5756c133bb263c4d46ca813d6c02ea3a37 Mon Sep 17 00:00:00 2001 From: lixiaolong <702156524@qq.com> Date: Wed, 5 Aug 2026 15:18:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(flow):=20=E6=B7=BB=E5=8A=A0=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E9=80=89=E6=8B=A9=E5=92=8C=E5=A4=8D=E5=88=B6=E7=B2=98?= =?UTF-8?q?=E8=B4=B4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 实现了 selectElementsByIds 方法用于批量选择元素 - 更新了选择和拖拽行为配置以支持禁用表单时的操作 - 引入 uuid 库用于生成唯一标识符 - 重构复制粘贴逻辑以支持节点和边的完整复制 - 实现了节点引用映射和锚点ID重映射功能 - 添加了子节点递归选择和引用更新机制 - 优化了粘贴后节点的渲染和选择逻辑 - 更新了拖拽相关的CSS样式以改善用户体验 --- src/views/flow/index.vue | 161 +++++++++++++++++++++++------ src/views/flow/vue-flow/adapter.js | 5 + 2 files changed, 134 insertions(+), 32 deletions(-) diff --git a/src/views/flow/index.vue b/src/views/flow/index.vue index 6161aec..1955613 100644 --- a/src/views/flow/index.vue +++ b/src/views/flow/index.vue @@ -110,8 +110,8 @@ :elevate-nodes-on-select="false" :delete-key-code="null" :multi-selection-key-code="['Control', 'Meta']" - :selection-key-code="groupSelectionPending" - :pan-on-drag="!groupSelectionPending" + :selection-key-code="flowStore.disableForm ? null : true" + :pan-on-drag="flowStore.disableForm ? true : [1, 2]" :zoom-on-double-click="false" :default-edge-options="defaultEdgeOptions" @connect="handleConnect" @@ -251,6 +251,7 @@