dtable-statistic 5.0.42-alpha.5 → 5.0.42-alpha.7

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.
@@ -111,6 +111,16 @@ const exportOneDimensionToTable = _ref => {
111
111
  }
112
112
  }
113
113
 
114
+ // count column
115
+ if (summaryColumn) {
116
+ const countColumn = {
117
+ type: _isDateSummaryColumn ? _dtableUtils.CellType.DATE : _dtableUtils.CellType.NUMBER,
118
+ name: summaryColumn === null || summaryColumn === void 0 ? void 0 : summaryColumn.name,
119
+ data: columnData
120
+ };
121
+ columns.push(countColumn);
122
+ }
123
+
114
124
  // total column
115
125
  const totalColumn = {
116
126
  type: _isDateSummaryColumn ? _dtableUtils.CellType.DATE : _dtableUtils.CellType.NUMBER,
@@ -571,7 +581,7 @@ const updatedOneDimensionToTable = _ref5 => {
571
581
  method
572
582
  } = item;
573
583
  const column = columnMap[key];
574
- const cellValueKey = key + method;
584
+ const cellValueKey = key;
575
585
  const totalCellValue = getValidValueForColumn(column, total[cellValueKey]);
576
586
  if (column && (0, _cellValue.isCellValueChanged)(row[column.key], totalCellValue, column.type)) {
577
587
  updateRow[column.key] = totalCellValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.0.42-alpha.5",
3
+ "version": "5.0.42-alpha.7",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",