From 84ce0bce7d76d3416153741ab571c4c17e4d80ac Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 9 May 2017 09:52:04 +0800 Subject: [PATCH] =?UTF-8?q?buttongroup=E7=9A=84removeAt=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=86=99=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bi/base.js | 2 +- bi/case.js | 6 ++++++ docs/base.js | 2 +- docs/case.js | 6 ++++++ src/base/combination/group.button.js | 2 +- src/case/layer/pane.list.js | 6 ++++++ 6 files changed, 21 insertions(+), 3 deletions(-) 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方法