1. 增加流程图 小手功能 2. 增加重置功能 移动流程位置后恢复原位置 3. 流程挪动的时候禁用文本选择,确保拖动时不会选择文本

This commit is contained in:
Lemon 2025-02-18 12:03:12 +08:00
parent f9c7446186
commit 58825842ab

View File

@ -114,7 +114,7 @@ const startDrag = (e: MouseEvent) => {
const onDrag = (e: MouseEvent) => { const onDrag = (e: MouseEvent) => {
if (!isDragging.value) return; if (!isDragging.value) return;
e.preventDefault(); e.preventDefault(); //
// 使 requestAnimationFrame // 使 requestAnimationFrame
requestAnimationFrame(() => { requestAnimationFrame(() => {
@ -261,6 +261,7 @@ const resetPosition = () => {
height: 100%; height: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
user-select: none; //
} }
.simple-process-model { .simple-process-model {