Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(linestyle bug): lineStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
tubiaoge committed Jul 31, 2020
1 parent d9fb5fe commit 27ba0a3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 786 deletions.
2 changes: 1 addition & 1 deletion src/controllers/sheetMove.js
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ function getNextIndex(direction, focusIndex, strIndex, endIndex) {
}

if(cellNull.length == 1 && stNull && cellNull[i] == false){
index = strIndex + i;
index = strIndex + i + 1;
break;
}
else if(cellNull.length > 1){
Expand Down
9 changes: 6 additions & 3 deletions src/controllers/sheetmanage.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ const sheetmanage = {
generateRandomSheetName: function(file, isPivotTable) {
let index = file.length;

const locale_pivotTable = locale().pivotTable;
const title = locale_pivotTable.title;

for(let i = 0; i < file.length; i++){
if(file[i].name.indexOf("Sheet") > -1 || file[i].name.indexOf("数据透视表") > -1){
let suffix = parseFloat(file[i].name.replace("Sheet", "").replace("数据透视表", ""));
if(file[i].name.indexOf("Sheet") > -1 || file[i].name.indexOf(title) > -1){
let suffix = parseFloat(file[i].name.replace("Sheet", "").replace(title, ""));

if(suffix != "NaN" && Math.ceil(suffix) > index){
index = Math.ceil(suffix);
Expand All @@ -54,7 +57,7 @@ const sheetmanage = {
}

if(isPivotTable){
return "数据透视表" + (index + 1);
return title + (index + 1);
}
else{
return "Sheet" + (index + 1);
Expand Down
Loading

0 comments on commit 27ba0a3

Please sign in to comment.