From 2da97ed2987a96480e85148adb8c7f94aca4795a Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 20 Apr 2017 20:03:10 +0800 Subject: [PATCH] add --- bi/base.js | 2 +- docs/base.js | 2 +- src/base/combination/group.button.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bi/base.js b/bi/base.js index b092e206d8..418b26bc47 100644 --- a/bi/base.js +++ b/bi/base.js @@ -1061,7 +1061,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { //如果是一个简单的layout _isSimpleLayout: function () { var o = this.options; - return o.layouts.length === 1 && !BI.isArray(o.items[0]) + return o.layouts.length === 1 && !BI.isArray(o.layouts.items[0]) }, doBehavior: function () { diff --git a/docs/base.js b/docs/base.js index b092e206d8..418b26bc47 100644 --- a/docs/base.js +++ b/docs/base.js @@ -1061,7 +1061,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { //如果是一个简单的layout _isSimpleLayout: function () { var o = this.options; - return o.layouts.length === 1 && !BI.isArray(o.items[0]) + return o.layouts.length === 1 && !BI.isArray(o.layouts.items[0]) }, doBehavior: function () { diff --git a/src/base/combination/group.button.js b/src/base/combination/group.button.js index d303feeebd..22e42c3064 100644 --- a/src/base/combination/group.button.js +++ b/src/base/combination/group.button.js @@ -117,7 +117,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { //如果是一个简单的layout _isSimpleLayout: function () { var o = this.options; - return o.layouts.length === 1 && !BI.isArray(o.items[0]) + return o.layouts.length === 1 && !BI.isArray(o.layouts.items[0]) }, doBehavior: function () {