Browse Source

DEC-20331 fix: 【冒烟】【目录管理】bi工程添加拖动目录节点均有问题

es6
dailer 3 years ago
parent
commit
0601c459a5
  1. 2
      src/core/wrapper/layout.js

2
src/core/wrapper/layout.js

@ -447,7 +447,7 @@ BI.Layout = BI.inherit(BI.Widget, {
} else { // 如果新节点在旧节点区间中存在就复用一下 } else { // 如果新节点在旧节点区间中存在就复用一下
var sameOldIndex = sameOldVnode[1]; var sameOldIndex = sameOldVnode[1];
updated = self.patchItem(sameOldVnode[0], newStartVnode, sameOldIndex, newStartIdx) || updated; updated = self.patchItem(sameOldVnode[0], newStartVnode, sameOldIndex, newStartIdx) || updated;
children[sameOldVnode[0].key == null ? newStartIdx : sameOldVnode[0].key] = self._children[self._getChildName(newStartIdx)] = self._children[self._getChildName(sameOldIndex)]; children[sameOldVnode[0].key == null ? newStartIdx : sameOldVnode[0].key] = self._children[self._getChildName(sameOldIndex)];
if (newStartIdx !== sameOldIndex) { if (newStartIdx !== sameOldIndex) {
delete self._children[self._getChildName(sameOldIndex)]; delete self._children[self._getChildName(sameOldIndex)];
} }

Loading…
Cancel
Save