File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-visual-modeling" ,
3
- "version" : " 1.0.43 " ,
3
+ "version" : " 1.0.44 " ,
4
4
"description" : " 一个基于React的数据可视化建模的DAG图,适用于UML,数据库建模,数据仓库建设等业务" ,
5
5
"main" : " dist/index.js" ,
6
6
"pack" : " pack/index.js" ,
Original file line number Diff line number Diff line change @@ -151,7 +151,10 @@ export default class TableNode extends Node {
151
151
$ ( titleDom ) . append ( titleTextDom ) ;
152
152
ReactDOM . render (
153
153
titleRender ( title , this . options ) ,
154
- titleTextDom [ 0 ]
154
+ titleTextDom [ 0 ] ,
155
+ ( ) => {
156
+ this . _updateEndpointPos ( ) ;
157
+ }
155
158
) ;
156
159
} else {
157
160
let titleTextDom = $ ( `<div class="title-text">${ title } </div>` ) ;
@@ -302,7 +305,10 @@ export default class TableNode extends Node {
302
305
ReactDOM . unmountComponentAtNode ( titleTextDom [ 0 ] ) ;
303
306
ReactDOM . render (
304
307
titleRender ( newTitle ) ,
305
- titleTextDom [ 0 ]
308
+ titleTextDom [ 0 ] ,
309
+ ( ) => {
310
+ this . _updateEndpointPos ( ) ;
311
+ }
306
312
) ;
307
313
} else {
308
314
titleTextDom . text ( newTitle ) ;
@@ -434,4 +440,10 @@ export default class TableNode extends Node {
434
440
} )
435
441
}
436
442
}
443
+
444
+ _updateEndpointPos ( ) {
445
+ ( this . endpoints || [ ] ) . forEach ( ( item ) => {
446
+ item . updatePos ( ) ;
447
+ } ) ;
448
+ }
437
449
} ;
You can’t perform that action at this time.
0 commit comments