From 0d588a4a2490c58d1a9e594d33c337639b442191 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 27 Mar 2017 22:34:56 +0800 Subject: [PATCH] add --- bi/base.js | 3 +-- dist/base.js | 3 +-- src/base/combination/group.button.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) 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);