From 6d0af1ad63084368f34211881b1a900252a03974 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 12 Nov 2020 19:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=B6=E5=AD=90=E7=BB=84=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E5=91=BD=E5=90=8D=E4=BC=98=E5=8C=96=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout/layout.card.js | 2 +- src/core/wrapper/layout/layout.tape.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/wrapper/layout/layout.card.js b/src/core/wrapper/layout/layout.card.js index 6a40ea856a..b44527270a 100644 --- a/src/core/wrapper/layout/layout.card.js +++ b/src/core/wrapper/layout/layout.card.js @@ -76,7 +76,7 @@ BI.CardLayout = BI.inherit(BI.Layout, { }, _deleteCardByName: function (cardName) { - delete this._children[this.getName() + "_" + cardName]; + delete this._children[this._getChildName(cardName)]; var index = BI.findIndex(this.options.items, function (i, item) { return item.cardName == cardName; }); diff --git a/src/core/wrapper/layout/layout.tape.js b/src/core/wrapper/layout/layout.tape.js index 0938ac549b..0ac7806655 100644 --- a/src/core/wrapper/layout/layout.tape.js +++ b/src/core/wrapper/layout/layout.tape.js @@ -46,7 +46,7 @@ BI.HTapeLayout = BI.inherit(BI.Layout, { var self = this, o = this.options; items = BI.compact(items); BI.each(items, function (i, item) { - if (!self.hasWidget(self.getName() + "_" + i)) { + if (!self.hasWidget(self._getChildName(i))) { var w = BI._lazyCreateWidget(item); self.addWidget(self._getChildName(i), w); } else {