@fileverse-dev/fortune-core 1.1.33 → 1.1.34

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.
@@ -1119,7 +1119,7 @@ export function handlePaste(ctx, e) {
1119
1119
  }
1120
1120
  var data_1 = new Array(trList.length);
1121
1121
  var colLen_1 = 0;
1122
- _.forEach(trList[0].querySelectorAll("td"), function (td) {
1122
+ _.forEach(trList[0].querySelectorAll("td, th"), function (td) {
1123
1123
  var colspan = td.colSpan;
1124
1124
  if (Number.isNaN(colspan)) {
1125
1125
  colspan = 1;
@@ -1153,7 +1153,8 @@ export function handlePaste(ctx, e) {
1153
1153
  if (_.has(ctx.luckysheetfile[index_1].config.rowlen, targetR) && ctx.luckysheetfile[index_1].config.rowlen[targetR] !== targetRowHeight || !_.has(ctx.luckysheetfile[index_1].config.rowlen, targetR) && ctx.luckysheetfile[index_1].defaultRowHeight !== targetRowHeight) {
1154
1154
  rowHeightList_1[targetR] = targetRowHeight;
1155
1155
  }
1156
- _.forEach(tr.querySelectorAll("td"), function (td) {
1156
+ _.forEach(tr.querySelectorAll("td, th"), function (element) {
1157
+ var td = element;
1157
1158
  var className = td.className;
1158
1159
  var cell = {};
1159
1160
  var txt = td.innerText || td.innerHTML;
@@ -1128,7 +1128,7 @@ function handlePaste(ctx, e) {
1128
1128
  }
1129
1129
  var data_1 = new Array(trList.length);
1130
1130
  var colLen_1 = 0;
1131
- _lodash.default.forEach(trList[0].querySelectorAll("td"), function (td) {
1131
+ _lodash.default.forEach(trList[0].querySelectorAll("td, th"), function (td) {
1132
1132
  var colspan = td.colSpan;
1133
1133
  if (Number.isNaN(colspan)) {
1134
1134
  colspan = 1;
@@ -1162,7 +1162,8 @@ function handlePaste(ctx, e) {
1162
1162
  if (_lodash.default.has(ctx.luckysheetfile[index_1].config.rowlen, targetR) && ctx.luckysheetfile[index_1].config.rowlen[targetR] !== targetRowHeight || !_lodash.default.has(ctx.luckysheetfile[index_1].config.rowlen, targetR) && ctx.luckysheetfile[index_1].defaultRowHeight !== targetRowHeight) {
1163
1163
  rowHeightList_1[targetR] = targetRowHeight;
1164
1164
  }
1165
- _lodash.default.forEach(tr.querySelectorAll("td"), function (td) {
1165
+ _lodash.default.forEach(tr.querySelectorAll("td, th"), function (element) {
1166
+ var td = element;
1166
1167
  var className = td.className;
1167
1168
  var cell = {};
1168
1169
  var txt = td.innerText || td.innerHTML;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",