diff --git a/bi/base.js b/bi/base.js index 534178084..c0a8257c4 100644 --- a/bi/base.js +++ b/bi/base.js @@ -1135,7 +1135,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { }, removeItemAt: function (indexes) { - BI.remove(this.buttons, indexes); + BI.removeAt(this.buttons, indexes); this.layouts.removeItemAt(indexes); }, diff --git a/bi/case.js b/bi/case.js index ecfa47fc6..a6378aabe 100644 --- a/bi/case.js +++ b/bi/case.js @@ -7181,6 +7181,12 @@ BI.ListPane = BI.inherit(BI.Pane, { 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) { var self = this, o = this.options; if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法 diff --git a/docs/base.js b/docs/base.js index 534178084..c0a8257c4 100644 --- a/docs/base.js +++ b/docs/base.js @@ -1135,7 +1135,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { }, removeItemAt: function (indexes) { - BI.remove(this.buttons, indexes); + BI.removeAt(this.buttons, indexes); this.layouts.removeItemAt(indexes); }, diff --git a/docs/case.js b/docs/case.js index ecfa47fc6..a6378aabe 100644 --- a/docs/case.js +++ b/docs/case.js @@ -7181,6 +7181,12 @@ BI.ListPane = BI.inherit(BI.Pane, { 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) { var self = this, o = this.options; if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法 diff --git a/src/base/combination/group.button.js b/src/base/combination/group.button.js index d303feeeb..2da4ee7fd 100644 --- a/src/base/combination/group.button.js +++ b/src/base/combination/group.button.js @@ -158,7 +158,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { }, removeItemAt: function (indexes) { - BI.remove(this.buttons, indexes); + BI.removeAt(this.buttons, indexes); this.layouts.removeItemAt(indexes); }, diff --git a/src/case/layer/pane.list.js b/src/case/layer/pane.list.js index b7faf2758..d225bd87e 100644 --- a/src/case/layer/pane.list.js +++ b/src/case/layer/pane.list.js @@ -101,6 +101,12 @@ BI.ListPane = BI.inherit(BI.Pane, { 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) { var self = this, o = this.options; if (arguments.length === 0 && (BI.isFunction(this.button_group.attr("itemsCreator")))) {//接管loader的populate方法