From 21cde3bf2e5dabd5adad9b3f22119235f173a499 Mon Sep 17 00:00:00 2001 From: iapyang Date: Mon, 21 Jun 2021 15:45:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=AC=AC=E4=B8=80=E4=B8=AA=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/layer/pane.list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/case/layer/pane.list.js b/src/case/layer/pane.list.js index 28d618285c..1b65303550 100644 --- a/src/case/layer/pane.list.js +++ b/src/case/layer/pane.list.js @@ -104,7 +104,7 @@ BI.ListPane = BI.inherit(BI.Pane, { }, removeItemAt: function (indexes) { - indexes = indexes || []; + indexes = BI.isNull(indexes) ? [] : indexes; BI.removeAt(this.options.items, indexes); this.button_group.removeItemAt.apply(this.button_group, arguments); this.check(); From 3666aa55ae1bfcc48bf5447a163592124aa5a4b0 Mon Sep 17 00:00:00 2001 From: iapyang Date: Mon, 21 Jun 2021 15:46:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/case/layer/pane.list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/case/layer/pane.list.ts b/typescript/case/layer/pane.list.ts index 46c3f6bfea..bf800cf158 100644 --- a/typescript/case/layer/pane.list.ts +++ b/typescript/case/layer/pane.list.ts @@ -13,7 +13,7 @@ export declare class ListPane extends Pane { addItems(items: T[]): void; - removeItemAt(indexes: number): void; + removeItemAt(indexes?: number | number[]): void; populate(items?: T[]): void;