From b9fbdb6170e1306302c77dd8eab5aca15007487a Mon Sep 17 00:00:00 2001 From: zsmj Date: Thu, 27 Oct 2022 17:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20fix:=20tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/combination/tab.js b/src/base/combination/tab.js index 9fe862884..575ecf1a0 100644 --- a/src/base/combination/tab.js +++ b/src/base/combination/tab.js @@ -44,7 +44,7 @@ BI.Tab = BI.inherit(BI.Widget, { cardLayout: this.layout, cardCreator: function (v) { BI.Widget.execWithContext(self, function () { - self.cardMap[v] = o.cardCreator.apply(self, arguments); + self.cardMap[v] = o.cardCreator.call(self, v); }); return self.cardMap[v]; @@ -75,7 +75,7 @@ BI.Tab = BI.inherit(BI.Widget, { var self = this, o = this.options; if (!this.layout.isCardExisted(v)) { BI.Widget.execWithContext(this, function () { - self.cardMap[v] = o.cardCreator.apply(self, arguments); + self.cardMap[v] = o.cardCreator.call(self, v); }); this.layout.addCardByName(v, this.cardMap[v]); }