@@ -1507,9 +1507,9 @@ window.ComponentCascadeLine = class {
1507
1507
} ) ;
1508
1508
}
1509
1509
1510
- dialog ( title ) {
1511
- let marginTop = ( this . DOM . clientHeight - 70 ) / 2 ;
1512
- let html = `<div class="dot-cascade-panel"><div class="dlp plane-header plane-header-delete " style="margin-top: ${ marginTop } px"></div><div class="plane-body dlp-scroll plane-body-delete "></div></div>` ;
1510
+ dialog ( title , h = 50 ) {
1511
+ let marginTop = ( this . DOM . clientHeight - ( h + 20 ) ) / 2 ;
1512
+ let html = `<div class="dot-cascade-panel"><div class="dlp plane-header plane-header-dialog " style="margin-top: ${ marginTop } px"></div><div class="plane-body dlp-scroll plane-body-dialog" style="height: ${ h } px "></div></div>` ;
1513
1513
this . DOM . childNodes [ 0 ] . insertAdjacentHTML ( 'beforeend' , html ) ;
1514
1514
let panelDom = this . DOM . childNodes [ 0 ] . lastChild ;
1515
1515
let T = document . createElement ( 'div' ) ;
@@ -1729,7 +1729,22 @@ window.ComponentCascadeLine = class {
1729
1729
stack = parseInt ( D . getAttribute ( 'data-stack' ) ) ;
1730
1730
index = parseInt ( D . getAttribute ( 'data-k' ) ) ;
1731
1731
let node_data = object . dimensional_data [ stack ] [ index ] ;
1732
- object . dialog ( `<span class="dlp-text title" title="${ node_data . val } ">${ node_data . val } </span> 移动` ) ;
1732
+ object . dialog ( `<span class="dlp-text title" title="${ node_data . val } ">${ node_data . val } </span> 移动` , 90 ) ;
1733
+ let M = document . createElement ( 'div' ) ;
1734
+ M . className = 'dlp dlp-text dlp-label' ;
1735
+ M . addEventListener ( 'click' , ( ( ) => {
1736
+ if ( object . submit_block ) return ;
1737
+ object . submit_block = true ;
1738
+
1739
+ } ) ) ;
1740
+ M . insertAdjacentHTML ( 'afterbegin' , `<span>${ node_data . val } </span>` ) ;
1741
+ object . PLANE_BODY . insertAdjacentHTML ( 'afterbegin' , `<div class="dlp dlp-text dlp-label"><span>${ aim_node_data . val } </span></div>` ) ;
1742
+ if ( aim_node_data . parentNodes . indexOf ( node_data . key ) !== - 1 ) {
1743
+ object . PLANE_BODY . insertAdjacentHTML ( 'beforeend' , `<div>⇵</div>` ) ;
1744
+ } else {
1745
+ object . PLANE_BODY . insertAdjacentHTML ( 'beforeend' , `<div>↑</div>` ) ;
1746
+ }
1747
+ object . PLANE_BODY . append ( M ) ;
1733
1748
}
1734
1749
}
1735
1750
dom . addEventListener ( 'mousedown' , ( ) => {
0 commit comments