File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-visual-modeling" ,
3
- "version" : " 1.1.4 " ,
3
+ "version" : " 1.1.5 " ,
4
4
"description" : " 一个基于React的数据可视化建模的DAG图,适用于UML,数据库建模,数据仓库建设等业务" ,
5
5
"main" : " dist/index.js" ,
6
6
"pack" : " pack/index.js" ,
21
21
"author" : " 无惟" ,
22
22
"license" : " MIT" ,
23
23
"dependencies" : {
24
- "butterfly-dag" : " ~ 4.0.2" ,
24
+ "butterfly-dag" : " ^ 4.0.2" ,
25
25
"jquery" : " ^3.5.1" ,
26
26
"react-data-mapping" : " ^1.1.2"
27
27
},
Original file line number Diff line number Diff line change 1
- import { Canvas } from 'butterfly-dag' ;
1
+ import { Canvas , Tips } from 'butterfly-dag' ;
2
2
import $ from 'jquery' ;
3
3
4
4
import CollapseMenuGen from './collapse-menu.jsx' ;
@@ -26,6 +26,11 @@ export default class TableCanvas extends Canvas {
26
26
} ) ;
27
27
} ) ;
28
28
29
+ // 移动节点时,隐藏菜单
30
+ this . on ( 'system.drag.start' , ( data ) => {
31
+ Tips . closeMenu ( ) ;
32
+ } ) ;
33
+
29
34
if ( this . _enableHoverChain ) {
30
35
this . on ( 'custom.endpoint.hover' , ( data ) => {
31
36
let point = data . point ;
You can’t perform that action at this time.
0 commit comments