Browse Source

Pull request #1985: 无JIRA任务 修复无法删除第一个元素的问题

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit '3666aa55ae1bfcc48bf5447a163592124aa5a4b0':
  refactor: 修改描述
  fix: 修复无法删除第一个元素的问题
es6
Teller 3 years ago
parent
commit
88ef7db3e6
  1. 2
      src/case/layer/pane.list.js
  2. 2
      typescript/case/layer/pane.list.ts

2
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();

2
typescript/case/layer/pane.list.ts

@ -13,7 +13,7 @@ export declare class ListPane extends Pane {
addItems<T>(items: T[]): void;
removeItemAt(indexes: number): void;
removeItemAt(indexes?: number | number[]): void;
populate<T>(items?: T[]): void;

Loading…
Cancel
Save