hookehuyr

fix 修复主流程图操作失效问题

......@@ -34,7 +34,7 @@ export function dragNode(G6) {
onDragStart(e) {
// 打开预览模式不能拖动
if ($('.preview-container').length) {
if ($('.preview-container').parents('.el-overlay').is(':visible')) {
return;
}
......
/*
* @Date: 2023-10-27 09:29:59
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-02-20 11:02:23
* @LastEditTime: 2024-02-20 14: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)
}
},
......