From ee26cd9765b35bd489f143cb37349a07b54e93f5 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 6 Jun 2019 11:13:31 +0800 Subject: [PATCH] =?UTF-8?q?BI-45969=20fix:=20item=E6=B2=A1=E6=9C=89el?= =?UTF-8?q?=E5=8C=85=E8=A3=B9=E4=B8=94=E4=B8=8D=E6=98=AFWidget=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=EF=BC=8C=E4=BD=BF=E7=94=A8createItems=E4=BC=9A?= =?UTF-8?q?=E8=A2=AB=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=BA=9B=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/base.js b/src/core/base.js index 8c805a916..1a44db3f6 100644 --- a/src/core/base.js +++ b/src/core/base.js @@ -88,8 +88,8 @@ if (!_global.BI) { }, createItems: function (data, innerAttr, outerAttr) { - innerAttr = BI.isArray(innerAttr) ? innerAttr : BI.makeArray(BI.flatten(data).length, innerAttr); - outerAttr = BI.isArray(outerAttr) ? outerAttr : BI.makeArray(BI.flatten(data).length, outerAttr); + innerAttr = BI.isArray(innerAttr) ? innerAttr : BI.makeArray(BI.flatten(data).length, innerAttr || {}); + outerAttr = BI.isArray(outerAttr) ? outerAttr : BI.makeArray(BI.flatten(data).length, outerAttr || {}); return BI.map(data, function (i, item) { if (BI.isArray(item)) { return BI.createItems(item, innerAttr, outerAttr);