From 462b3489579f710c4ff35a3ae8c9d5463091235e Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 17 Mar 2022 16:21:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20tab=20showInd?= =?UTF-8?q?ex=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/combination/tab.js b/src/base/combination/tab.js index 30259e71a..2d88a81e4 100644 --- a/src/base/combination/tab.js +++ b/src/base/combination/tab.js @@ -92,7 +92,7 @@ BI.Tab = BI.inherit(BI.Widget, { created: function () { var o = this.options; if (o.showIndex !== false) { - this.setSelect(o.showIndex); + this.setSelect(BI.isFunction(o.showIndex) ? o.showIndex() : o.showIndex); } },