@leankylin-sheet/core 1.2.18 → 1.2.19

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.
package/dist/index.esm.js CHANGED
@@ -52336,10 +52336,11 @@ function copy(ctx) {
52336
52336
  for (var r = rows[0]; r <= rows[1]; r += 1) {
52337
52337
  cpString += "<tr>";
52338
52338
  for (var c = columns[0]; c <= columns[1]; c += 1) {
52339
- var _flowdata$r, _ref, _data$m;
52339
+ var _flowdata$r, _ref, _data$m, _ref2, _data$v;
52340
52340
  var data = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r = flowdata[r]) === null || _flowdata$r === void 0 ? void 0 : _flowdata$r[c];
52341
52341
  var value = (_ref = (_data$m = data === null || data === void 0 ? void 0 : data.m) !== null && _data$m !== void 0 ? _data$m : data === null || data === void 0 ? void 0 : data.v) !== null && _ref !== void 0 ? _ref : "";
52342
- cpString += "<td> ".concat(value, " </td>");
52342
+ var realValue = (_ref2 = (_data$v = data === null || data === void 0 ? void 0 : data.v) !== null && _data$v !== void 0 ? _data$v : data === null || data === void 0 ? void 0 : data.m) !== null && _ref2 !== void 0 ? _ref2 : "";
52343
+ cpString += "<td x:num=".concat(realValue, "> ").concat(value, " </td>");
52343
52344
  }
52344
52345
  cpString += "</tr>";
52345
52346
  }
@@ -69470,9 +69471,10 @@ function getClipboardData(e) {
69470
69471
  var cells = row.querySelectorAll("td");
69471
69472
  var rowData = [];
69472
69473
  for (var cIndex = 0; cIndex < cells.length; cIndex += 1) {
69473
- var _cell$textContent$tri, _cell$textContent;
69474
+ var _ref, _cell$getAttribute, _cell$textContent;
69474
69475
  var cell = cells[cIndex];
69475
- rowData.push((_cell$textContent$tri = cell === null || cell === void 0 ? void 0 : (_cell$textContent = cell.textContent) === null || _cell$textContent === void 0 ? void 0 : _cell$textContent.trim()) !== null && _cell$textContent$tri !== void 0 ? _cell$textContent$tri : "");
69476
+ var value = (_ref = (_cell$getAttribute = cell.getAttribute("x:num")) !== null && _cell$getAttribute !== void 0 ? _cell$getAttribute : cell === null || cell === void 0 ? void 0 : (_cell$textContent = cell.textContent) === null || _cell$textContent === void 0 ? void 0 : _cell$textContent.trim()) !== null && _ref !== void 0 ? _ref : "";
69477
+ rowData.push(value);
69476
69478
  }
69477
69479
  result.push(rowData);
69478
69480
  }
package/dist/index.js CHANGED
@@ -52346,10 +52346,11 @@ function copy(ctx) {
52346
52346
  for (var r = rows[0]; r <= rows[1]; r += 1) {
52347
52347
  cpString += "<tr>";
52348
52348
  for (var c = columns[0]; c <= columns[1]; c += 1) {
52349
- var _flowdata$r, _ref, _data$m;
52349
+ var _flowdata$r, _ref, _data$m, _ref2, _data$v;
52350
52350
  var data = flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r = flowdata[r]) === null || _flowdata$r === void 0 ? void 0 : _flowdata$r[c];
52351
52351
  var value = (_ref = (_data$m = data === null || data === void 0 ? void 0 : data.m) !== null && _data$m !== void 0 ? _data$m : data === null || data === void 0 ? void 0 : data.v) !== null && _ref !== void 0 ? _ref : "";
52352
- cpString += "<td> ".concat(value, " </td>");
52352
+ var realValue = (_ref2 = (_data$v = data === null || data === void 0 ? void 0 : data.v) !== null && _data$v !== void 0 ? _data$v : data === null || data === void 0 ? void 0 : data.m) !== null && _ref2 !== void 0 ? _ref2 : "";
52353
+ cpString += "<td x:num=".concat(realValue, "> ").concat(value, " </td>");
52353
52354
  }
52354
52355
  cpString += "</tr>";
52355
52356
  }
@@ -69480,9 +69481,10 @@ function getClipboardData(e) {
69480
69481
  var cells = row.querySelectorAll("td");
69481
69482
  var rowData = [];
69482
69483
  for (var cIndex = 0; cIndex < cells.length; cIndex += 1) {
69483
- var _cell$textContent$tri, _cell$textContent;
69484
+ var _ref, _cell$getAttribute, _cell$textContent;
69484
69485
  var cell = cells[cIndex];
69485
- rowData.push((_cell$textContent$tri = cell === null || cell === void 0 ? void 0 : (_cell$textContent = cell.textContent) === null || _cell$textContent === void 0 ? void 0 : _cell$textContent.trim()) !== null && _cell$textContent$tri !== void 0 ? _cell$textContent$tri : "");
69486
+ var value = (_ref = (_cell$getAttribute = cell.getAttribute("x:num")) !== null && _cell$getAttribute !== void 0 ? _cell$getAttribute : cell === null || cell === void 0 ? void 0 : (_cell$textContent = cell.textContent) === null || _cell$textContent === void 0 ? void 0 : _cell$textContent.trim()) !== null && _ref !== void 0 ? _ref : "";
69487
+ rowData.push(value);
69486
69488
  }
69487
69489
  result.push(rowData);
69488
69490
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "repository": "http://114.55.85.79:19999/leankylin-front/leankylin-sheet",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@leankylin-sheet/formula-parser": "^1.2.18",
13
+ "@leankylin-sheet/formula-parser": "^1.2.19",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",