Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
58825842
authored
Feb 18, 2025
by
Lemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 增加流程图 小手功能 2. 增加重置功能 移动流程位置后恢复原位置 3. 流程挪动的时候禁用文本选择,确保拖动时不会选择文本
parent
f9c74461
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/components/SimpleProcessDesignerV2/src/SimpleProcessModel.vue
+2
-1
No files found.
src/components/SimpleProcessDesignerV2/src/SimpleProcessModel.vue
View file @
58825842
...
...
@@ -114,7 +114,7 @@ const startDrag = (e: MouseEvent) => {
const
onDrag
=
(
e
:
MouseEvent
)
=>
{
if
(
!
isDragging
.
value
)
return
;
e
.
preventDefault
();
e
.
preventDefault
();
// 禁用文本选择
// 使用 requestAnimationFrame 优化性能
requestAnimationFrame
(()
=>
{
...
...
@@ -261,6 +261,7 @@ const resetPosition = () => {
height
:
100%
;
position
:
relative
;
overflow
:
hidden
;
user-select
:
none
;
//
禁用文本选择
}
.simple-process-model
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment