Browse Source

fix: 清除无用代码

qufenxi
alan 5 years ago
parent
commit
fb19ff96d3
  1. 7
      src/modules/pages/connection/list/list.ts

7
src/modules/pages/connection/list/list.ts

@ -12,7 +12,6 @@ export class ConnectionList extends BI.LoadingPane {
model: ConnectionListModel['model']; model: ConnectionListModel['model'];
groupWidget: any; groupWidget: any;
loadingBar: any;
beforeInit(cb: Function) { beforeInit(cb: Function) {
this.store.setConnections().then(() => { this.store.setConnections().then(() => {
@ -24,12 +23,6 @@ export class ConnectionList extends BI.LoadingPane {
connections: () => { connections: () => {
this.groupWidget.populate(this.renderList()); this.groupWidget.populate(this.renderList());
}, },
showItemNum: () => {
this.groupWidget.addItems(this.renderList(this.model.showItemNum - 50));
BI.size(this.model.connections) > this.model.showItemNum ?
this.loadingBar.setLoaded() :
this.loadingBar.setEnd();
},
} }
render() { render() {

Loading…
Cancel
Save