Browse Source

BI-60554 fix: populate的时候只需要刷新右上角的计数

master
windy 5 years ago
parent
commit
5e9f3fbf98
  1. 2
      src/widget/multiselect/multiselect.combo.js
  2. 2
      src/widget/multiselect/multiselect.combo.nobar.js
  3. 2
      src/widget/multiselect/multiselect.insert.combo.js
  4. 2
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  5. 4
      src/widget/multiselect/trigger/switcher.checkselected.js

2
src/widget/multiselect/multiselect.combo.js

@ -424,7 +424,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
this.numberCounter.populateSwitcher.apply(this.numberCounter, arguments);
}
});

2
src/widget/multiselect/multiselect.combo.nobar.js

@ -420,7 +420,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
this.numberCounter.populateSwitcher.apply(this.numberCounter, arguments);
}
});

2
src/widget/multiselect/multiselect.insert.combo.js

@ -441,7 +441,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
this.numberCounter.populateSwitcher.apply(this.numberCounter, arguments);
}
});

2
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -438,7 +438,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
this.numberCounter.populateSwitcher.apply(this.numberCounter, arguments);
}
});

4
src/widget/multiselect/trigger/switcher.checkselected.js

@ -96,6 +96,10 @@ BI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {
populate: function (items) {
this.switcher.populate.apply(this.switcher, arguments);
},
populateSwitcher: function () {
this.button.populate.apply(this.switcher, arguments);
}
});

Loading…
Cancel
Save