guy 8 years ago
parent
commit
0d588a4a24
  1. 3
      bi/base.js
  2. 3
      dist/base.js
  3. 3
      src/base/combination/group.button.js

3
bi/base.js

@ -1078,10 +1078,9 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
//如果是一个简单的layout //如果是一个简单的layout
_isSimpleLayout: function () { _isSimpleLayout: function () {
var o = this.options; var o = this.options;
return o.layouts.length === 1 return o.layouts.length === 1 && !BI.isArray(o.items[0])
}, },
doBehavior: function () { doBehavior: function () {
var args = Array.prototype.slice.call(arguments); var args = Array.prototype.slice.call(arguments);
args.unshift(this.buttons); args.unshift(this.buttons);

3
dist/base.js vendored

@ -1078,10 +1078,9 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
//如果是一个简单的layout //如果是一个简单的layout
_isSimpleLayout: function () { _isSimpleLayout: function () {
var o = this.options; var o = this.options;
return o.layouts.length === 1 return o.layouts.length === 1 && !BI.isArray(o.items[0])
}, },
doBehavior: function () { doBehavior: function () {
var args = Array.prototype.slice.call(arguments); var args = Array.prototype.slice.call(arguments);
args.unshift(this.buttons); args.unshift(this.buttons);

3
src/base/combination/group.button.js

@ -115,10 +115,9 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
//如果是一个简单的layout //如果是一个简单的layout
_isSimpleLayout: function () { _isSimpleLayout: function () {
var o = this.options; var o = this.options;
return o.layouts.length === 1 return o.layouts.length === 1 && !BI.isArray(o.items[0])
}, },
doBehavior: function () { doBehavior: function () {
var args = Array.prototype.slice.call(arguments); var args = Array.prototype.slice.call(arguments);
args.unshift(this.buttons); args.unshift(this.buttons);

Loading…
Cancel
Save