Commit 58825842 by Lemon

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

parent f9c74461
...@@ -114,7 +114,7 @@ const startDrag = (e: MouseEvent) => { ...@@ -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 = () => { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment