Browse Source

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

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit 'f49a860346059ee9fe643a11d5bf21513ece9b60':
  DEC-20331 fix: 【冒烟】【目录管理】bi工程添加拖动目录节点均有问题
es6
Dailer 3 years ago
parent
commit
a5a4cd5ddb
  1. 2
      src/core/wrapper/layout.js

2
src/core/wrapper/layout.js

@ -447,7 +447,7 @@ BI.Layout = BI.inherit(BI.Widget, {
} else { // 如果新节点在旧节点区间中存在就复用一下
var sameOldIndex = sameOldVnode[1];
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) {
delete self._children[self._getChildName(sameOldIndex)];
}

Loading…
Cancel
Save