From 3c0b9fc1bde100f04b11aa7842d9100e04f0784c Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 9 May 2017 10:07:50 +0800 Subject: [PATCH] update --- bi/case.js | 7 ++++--- docs/case.js | 7 ++++--- src/case/layer/pane.list.js | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/bi/case.js b/bi/case.js index a6378aabe..3c9e1d261 100644 --- a/bi/case.js +++ b/bi/case.js @@ -7181,9 +7181,10 @@ 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); + removeItemAt: function (indexes) { + indexes = indexes || []; + BI.removeAt(this.options.items, indexes); + this.button_group.removeItemAt.apply(this.button_group, arguments); this.check(); }, diff --git a/docs/case.js b/docs/case.js index a6378aabe..3c9e1d261 100644 --- a/docs/case.js +++ b/docs/case.js @@ -7181,9 +7181,10 @@ 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); + removeItemAt: function (indexes) { + indexes = indexes || []; + BI.removeAt(this.options.items, indexes); + this.button_group.removeItemAt.apply(this.button_group, arguments); this.check(); }, diff --git a/src/case/layer/pane.list.js b/src/case/layer/pane.list.js index d225bd87e..fcedfc8b3 100644 --- a/src/case/layer/pane.list.js +++ b/src/case/layer/pane.list.js @@ -101,9 +101,10 @@ 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); + removeItemAt: function (indexes) { + indexes = indexes || []; + BI.removeAt(this.options.items, indexes); + this.button_group.removeItemAt.apply(this.button_group, arguments); this.check(); },