diff --git a/bi/base.js b/bi/base.js index 534178084d..c0a8257c4d 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 ecfa47fc6e..a6378aabe6 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 534178084d..c0a8257c4d 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 ecfa47fc6e..a6378aabe6 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 d303feeebd..2da4ee7fdf 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 b7faf2758e..d225bd87e2 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方法