Browse Source

fix: DEC-9993 点击之后取消选中

qufenxi
alan 5 years ago
parent
commit
b1416616aa
  1. 8
      src/modules/pages/connection/list/list.ts
  2. 5
      src/modules/pages/connection/list/list_item/list_item.ts

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

@ -21,7 +21,9 @@ export class ConnectionList extends BI.LoadingPane {
watch = {
connections: () => {
this.groupWidget.populate(this.renderList());
const times = this.groupWidget.times;
this.groupWidget.populate(this.renderList(0, this.groupWidget.times * 50));
this.groupWidget.times = times;
},
}
@ -59,7 +61,9 @@ export class ConnectionList extends BI.LoadingPane {
populate(this.renderList((options.times - 1) * 50, options.times * 50));
},
hasNext: options => options.times * 50 < BI.size(this.model.connections),
ref: (_ref: any) => {
this.groupWidget = _ref;
},
};
}

5
src/modules/pages/connection/list/list_item/list_item.ts

@ -27,6 +27,7 @@ export class ListItem extends BI.BasicButton {
comboWidget: any;
nameLabel: any;
nameEditor: any;
downListCombo: any;
testStatus: TestStatus;
watch = {
@ -96,10 +97,14 @@ export class ListItem extends BI.BasicButton {
cls: 'dcm-link-other-font icon-size-16',
},
items: this.renderDownList(),
ref: (_ref: any) => {
this.downListCombo = _ref;
},
listeners: [{
eventName: BI.DownListCombo.EVENT_CHANGE,
action: (value: string) => {
this.itemActionCalculate().actionClac(value);
this.downListCombo.setValue('');
},
}],

Loading…
Cancel
Save