Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-02-20 14:54:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a15df20e3f4b5d28f154ef089b32adc5571872d0
a15df20e
1 parent
ff53133e
fix 修复主流程图操作失效问题
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
src/behavior/drag-node.ts
src/behavior/hover-anchor-active.ts
src/behavior/drag-node.ts
View file @
a15df20
...
...
@@ -34,7 +34,7 @@ export function dragNode(G6) {
onDragStart
(
e
)
{
// 打开预览模式不能拖动
if
(
$
(
'.preview-container'
).
length
)
{
if
(
$
(
'.preview-container'
).
parents
(
'.el-overlay'
).
is
(
':visible'
)
)
{
return
;
}
...
...
src/behavior/hover-anchor-active.ts
View file @
a15df20
/*
* @Date: 2023-10-27 09:29:59
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-02-20 1
1:02:23
* @LastEditTime: 2024-02-20 1
4:53:35
* @FilePath: /vue-flow-editor/src/behavior/hover-anchor-active.ts
* @Description: 文件描述
*/
...
...
@@ -34,8 +34,10 @@ export function hoverAnchorActive(G6) {
},
onEnterNode
(
e
)
{
const
item
=
e
.
item
;
// 打开预览模式显示锚点
if
(
!
$
(
'.preview-container'
).
length
)
{
// 打开预览模式不显示锚点
if
(
$
(
'.preview-container'
).
parents
(
'.el-overlay'
).
is
(
':visible'
))
{
item
.
hideAnchor
(
this
.
graph
);
}
else
{
item
.
showAnchor
(
this
.
graph
)
}
},
...
...
Please
register
or
login
to post a comment