Browse Source

Merge pull request #38 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '84ce0bce7d76d3416153741ab571c4c17e4d80ac':
  buttongroup的removeAt方法写错了
master
windy 8 years ago
parent
commit
d5c812d094
  1. 2
      bi/base.js
  2. 6
      bi/case.js
  3. 2
      docs/base.js
  4. 6
      docs/case.js
  5. 2
      src/base/combination/group.button.js
  6. 6
      src/case/layer/pane.list.js

2
bi/base.js

@ -1135,7 +1135,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
}, },
removeItemAt: function (indexes) { removeItemAt: function (indexes) {
BI.remove(this.buttons, indexes); BI.removeAt(this.buttons, indexes);
this.layouts.removeItemAt(indexes); this.layouts.removeItemAt(indexes);
}, },

6
bi/case.js

@ -7181,6 +7181,12 @@ BI.ListPane = BI.inherit(BI.Pane, {
this.check(); this.check();
}, },
removeItems: function (items) {
BI.remove(this.options.items, items);
this.button_group.removeItems.apply(this.button_group, arguments);
this.check();
},
populate: function (items) { populate: function (items) {
var self = this, o = this.options; var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法 if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法

2
docs/base.js

@ -1135,7 +1135,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
}, },
removeItemAt: function (indexes) { removeItemAt: function (indexes) {
BI.remove(this.buttons, indexes); BI.removeAt(this.buttons, indexes);
this.layouts.removeItemAt(indexes); this.layouts.removeItemAt(indexes);
}, },

6
docs/case.js

@ -7181,6 +7181,12 @@ BI.ListPane = BI.inherit(BI.Pane, {
this.check(); this.check();
}, },
removeItems: function (items) {
BI.remove(this.options.items, items);
this.button_group.removeItems.apply(this.button_group, arguments);
this.check();
},
populate: function (items) { populate: function (items) {
var self = this, o = this.options; var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法 if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法

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

@ -158,7 +158,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
}, },
removeItemAt: function (indexes) { removeItemAt: function (indexes) {
BI.remove(this.buttons, indexes); BI.removeAt(this.buttons, indexes);
this.layouts.removeItemAt(indexes); this.layouts.removeItemAt(indexes);
}, },

6
src/case/layer/pane.list.js

@ -101,6 +101,12 @@ BI.ListPane = BI.inherit(BI.Pane, {
this.check(); this.check();
}, },
removeItems: function (items) {
BI.remove(this.options.items, items);
this.button_group.removeItems.apply(this.button_group, arguments);
this.check();
},
populate: function (items) { populate: function (items) {
var self = this, o = this.options; var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法 if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法

Loading…
Cancel
Save