|
@@ -955,7 +955,6 @@ const SpreadJsObj = {
|
|
|
return copyData.join('\r\n');
|
|
|
},
|
|
|
analysisPasteText: function (text, transpose = false) {
|
|
|
- console.log(text);
|
|
|
const result = [];
|
|
|
if (text === '') return result;
|
|
|
|
|
@@ -973,7 +972,7 @@ const SpreadJsObj = {
|
|
|
},
|
|
|
transposePasteData: function (data) {
|
|
|
const result = [];
|
|
|
- const rowCount = data.length, colCount = data.reduce((r, x) => { return r ? Math.max(r, x.length) : x.length; });
|
|
|
+ const rowCount = data.length, colCount = data.reduce((r, x) => { return Math.max(r, x.length); }, 0);
|
|
|
for (let c = 0; c < colCount; c++) {
|
|
|
const newRow = [];
|
|
|
for (let r = 0; r < rowCount; r++) {
|