diff --git a/bi/base.js b/bi/base.js index b85a2d5a9..7fdca65c7 100644 --- a/bi/base.js +++ b/bi/base.js @@ -1078,10 +1078,9 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { //如果是一个简单的layout _isSimpleLayout: function () { var o = this.options; - return o.layouts.length === 1 + return o.layouts.length === 1 && !BI.isArray(o.items[0]) }, - doBehavior: function () { var args = Array.prototype.slice.call(arguments); args.unshift(this.buttons); diff --git a/dist/base.js b/dist/base.js index b85a2d5a9..7fdca65c7 100644 --- a/dist/base.js +++ b/dist/base.js @@ -1078,10 +1078,9 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { //如果是一个简单的layout _isSimpleLayout: function () { var o = this.options; - return o.layouts.length === 1 + return o.layouts.length === 1 && !BI.isArray(o.items[0]) }, - doBehavior: function () { var args = Array.prototype.slice.call(arguments); args.unshift(this.buttons); diff --git a/src/base/combination/group.button.js b/src/base/combination/group.button.js index 655960ab4..f680af2cc 100644 --- a/src/base/combination/group.button.js +++ b/src/base/combination/group.button.js @@ -115,10 +115,9 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { //如果是一个简单的layout _isSimpleLayout: function () { var o = this.options; - return o.layouts.length === 1 + return o.layouts.length === 1 && !BI.isArray(o.items[0]) }, - doBehavior: function () { var args = Array.prototype.slice.call(arguments); args.unshift(this.buttons);