mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 16:32:43 +08:00
1. 增加流程图 小手功能 2. 增加重置功能 移动流程位置后恢复原位置 3. 流程挪动的时候禁用文本选择,确保拖动时不会选择文本
This commit is contained in:
parent
f9c7446186
commit
58825842ab
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user