ps-toolkit-ui 1.22.35 → 1.22.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4003,7 +4003,7 @@
4003
4003
  var cv = _.get(row.Data, col.name);
4004
4004
  if (row.Data.isSum) {
4005
4005
  if (idx === 0) {
4006
- return this.l('SumCountCol', this.count);
4006
+ return this.l('SumCountCol', this.data().length === 0 ? this.count : this.data().length);
4007
4007
  }
4008
4008
  else if (col.sumFun != null) {
4009
4009
  return col.sumFun(this.sumRow);
@@ -4144,8 +4144,8 @@
4144
4144
  };
4145
4145
  TableClass.prototype.setSumRow = function () {
4146
4146
  if (this.sumRowBase != null) {
4147
- var checks_1 = this.rows.filter(function (x) { return x.checked === true; });
4148
- if (checks_1.length == 0) {
4147
+ var checks_1 = this.data();
4148
+ if (checks_1.length === 0) {
4149
4149
  this.sumRow = HelperClass.clone(this.sumRowBase);
4150
4150
  this.sumRow.isSum = true;
4151
4151
  return;
@@ -4869,7 +4869,7 @@
4869
4869
  this.table.rows.forEach(function (x) { return x.checked = true; });
4870
4870
  }
4871
4871
  if (this.table.onChangeCheck) {
4872
- this.table.onChangeCheck(this.table.rows.filter(function (x) { return x.checked === true; }));
4872
+ this.table.onChangeCheck(this.table.data());
4873
4873
  }
4874
4874
  this.table.setSumRow();
4875
4875
  };