zmdms-webui 2.6.9 → 2.7.1

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.
@@ -128,7 +128,7 @@ var useCopyToClipboard = function (params) {
128
128
  return;
129
129
  var handleKeyDown = function (e) {
130
130
  // 检查是否为复制快捷键且有选中的单元格
131
- if ((e.ctrlKey || e.metaKey) && e.key === "c" && cellSelection) {
131
+ if ((e.ctrlKey || e.metaKey) && e.code === "KeyC" && cellSelection) {
132
132
  // 检查当前焦点是否在表格容器内,或者事件目标是否在表格容器内
133
133
  var isInContainer = container.contains(document.activeElement) ||
134
134
  container.contains(e.target);
@@ -92,7 +92,7 @@ function exportToExcelWithMergeAndComments(records, columns, mergeKeys, numKeys,
92
92
  var key = col.dataIndex;
93
93
  if (col.isSummary && sumsByKey_1[key] !== undefined) {
94
94
  if (col.totalCalcCallback) {
95
- return col.totalCalcCallback(sumsByKey_1, processedData);
95
+ sumsByKey_1[key] = col.totalCalcCallback(sumsByKey_1[key], sumsByKey_1);
96
96
  }
97
97
  return sumsByKey_1[key];
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "2.6.9",
3
+ "version": "2.7.1",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",