Showing
2 changed files
with
6 additions
and
4 deletions
| ... | @@ -34,7 +34,7 @@ export function dragNode(G6) { | ... | @@ -34,7 +34,7 @@ export function dragNode(G6) { |
| 34 | onDragStart(e) { | 34 | onDragStart(e) { |
| 35 | 35 | ||
| 36 | // 打开预览模式不能拖动 | 36 | // 打开预览模式不能拖动 |
| 37 | - if ($('.preview-container').length) { | 37 | + if ($('.preview-container').parents('.el-overlay').is(':visible')) { |
| 38 | return; | 38 | return; |
| 39 | } | 39 | } |
| 40 | 40 | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2023-10-27 09:29:59 | 2 | * @Date: 2023-10-27 09:29:59 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-02-20 11:02:23 | 4 | + * @LastEditTime: 2024-02-20 14:53:35 |
| 5 | * @FilePath: /vue-flow-editor/src/behavior/hover-anchor-active.ts | 5 | * @FilePath: /vue-flow-editor/src/behavior/hover-anchor-active.ts |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -34,8 +34,10 @@ export function hoverAnchorActive(G6) { | ... | @@ -34,8 +34,10 @@ export function hoverAnchorActive(G6) { |
| 34 | }, | 34 | }, |
| 35 | onEnterNode(e) { | 35 | onEnterNode(e) { |
| 36 | const item = e.item; | 36 | const item = e.item; |
| 37 | - // 打开预览模式显示锚点 | 37 | + // 打开预览模式不显示锚点 |
| 38 | - if (!$('.preview-container').length) { | 38 | + if ($('.preview-container').parents('.el-overlay').is(':visible')) { |
| 39 | + item.hideAnchor(this.graph); | ||
| 40 | + } else { | ||
| 39 | item.showAnchor(this.graph) | 41 | item.showAnchor(this.graph) |
| 40 | } | 42 | } |
| 41 | }, | 43 | }, | ... | ... |
-
Please register or login to post a comment