|
@ -13,6 +13,7 @@ import Store from '../store'; |
|
|
|
|
|
|
|
|
//增加行列
|
|
|
//增加行列
|
|
|
function luckysheetextendtable(type, index, value, direction, sheetIndex) { |
|
|
function luckysheetextendtable(type, index, value, direction, sheetIndex) { |
|
|
|
|
|
console.log(type, index, value, direction, sheetIndex) |
|
|
sheetIndex = sheetIndex || Store.currentSheetIndex; |
|
|
sheetIndex = sheetIndex || Store.currentSheetIndex; |
|
|
|
|
|
|
|
|
if(type=='row' && !checkProtectionAuthorityNormal(sheetIndex, "insertRows")){ |
|
|
if(type=='row' && !checkProtectionAuthorityNormal(sheetIndex, "insertRows")){ |
|
@ -627,9 +628,12 @@ function luckysheetextendtable(type, index, value, direction, sheetIndex) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//空行模板
|
|
|
//空行模板
|
|
|
let row = []; |
|
|
let row = [], |
|
|
|
|
|
curRow = [...d][index] |
|
|
for(let c = 0; c < d[0].length; c++){ |
|
|
for(let c = 0; c < d[0].length; c++){ |
|
|
row.push(null); |
|
|
let cell = curRow[c], |
|
|
|
|
|
templateCell = cell ? {...cell, v: '', m: ''} : Store.defaultCell; |
|
|
|
|
|
row.push(templateCell); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//边框
|
|
|
//边框
|
|
@ -779,9 +783,12 @@ function luckysheetextendtable(type, index, value, direction, sheetIndex) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//空列模板
|
|
|
//空列模板
|
|
|
let col = []; |
|
|
let col = [], |
|
|
|
|
|
curd= [...d]; |
|
|
for(let r = 0; r < d.length; r++){ |
|
|
for(let r = 0; r < d.length; r++){ |
|
|
col.push(null); |
|
|
let cell = curd[r][index], |
|
|
|
|
|
templateCell = cell ? {...cell, v: '', m: ''} : Store.defaultCell; |
|
|
|
|
|
col.push(templateCell); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//边框
|
|
|
//边框
|
|
@ -892,6 +899,7 @@ function luckysheetextendtable(type, index, value, direction, sheetIndex) { |
|
|
newDataVerification, |
|
|
newDataVerification, |
|
|
newHyperlink |
|
|
newHyperlink |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
file.data = d; |
|
|
file.data = d; |
|
|