zmdms-webui 2.6.9 → 2.7.0
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.
|
|
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);
|
package/dist/es/table/excel.js
CHANGED
|
@@ -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
|
-
|
|
95
|
+
sumsByKey_1[key] = col.totalCalcCallback(sumsByKey_1, processedData);
|
|
96
96
|
}
|
|
97
97
|
return sumsByKey_1[key];
|
|
98
98
|
}
|