Skip to content

Commit 5882584

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/SimpleProcessDesignerV2/src/SimpleProcessModel.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const startDrag = (e: MouseEvent) => {
114114
115115
const onDrag = (e: MouseEvent) => {
116116
if (!isDragging.value) return;
117-
e.preventDefault();
117+
e.preventDefault(); // 禁用文本选择
118118
119119
// 使用 requestAnimationFrame 优化性能
120120
requestAnimationFrame(() => {
@@ -261,6 +261,7 @@ const resetPosition = () => {
261261
height: 100%;
262262
position: relative;
263263
overflow: hidden;
264+
user-select: none; // 禁用文本选择
264265
}
265266
266267
.simple-process-model {

0 commit comments

Comments
 (0)