From 0601c459a554946df5002c580c5b203f3f8f9084 Mon Sep 17 00:00:00 2001 From: dailer Date: Wed, 25 Aug 2021 14:41:35 +0800 Subject: [PATCH] =?UTF-8?q?DEC-20331=20fix:=20=E3=80=90=E5=86=92=E7=83=9F?= =?UTF-8?q?=E3=80=91=E3=80=90=E7=9B=AE=E5=BD=95=E7=AE=A1=E7=90=86=E3=80=91?= =?UTF-8?q?bi=E5=B7=A5=E7=A8=8B=E6=B7=BB=E5=8A=A0=E6=8B=96=E5=8A=A8?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=8A=82=E7=82=B9=E5=9D=87=E6=9C=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/wrapper/layout.js b/src/core/wrapper/layout.js index 0bde292a7..be6785057 100644 --- a/src/core/wrapper/layout.js +++ b/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)]; }