diff --git a/src/controllers/dropCell.js b/src/controllers/dropCell.js index ec60e84..ee5f928 100644 --- a/src/controllers/dropCell.js +++ b/src/controllers/dropCell.js @@ -485,7 +485,7 @@ const luckysheetDropCell = { let f = "=" + formula.functionCopy(cell.f, "down", j - apply_str_r + 1); let v = formula.execfunction(f, j, i); - formula.execFunctionGroup(j, i, v[1], undefined, d); + formula.execFunctionGroup(i, j, v[1], undefined, d); cell.f = v[2]; cell.v = v[1]; @@ -581,7 +581,7 @@ const luckysheetDropCell = { let f = "=" + formula.functionCopy(cell.f, "up", apply_end_r - j + 1); let v = formula.execfunction(f, j, i); - formula.execFunctionGroup(j, i, v[1], undefined, d); + formula.execFunctionGroup(i, j, v[1], undefined, d); cell.f = v[2]; cell.v = v[1]; @@ -680,7 +680,7 @@ const luckysheetDropCell = { let f = "=" + formula.functionCopy(cell.f, "right", j - apply_str_c + 1); let v = formula.execfunction(f, i, j); - formula.execFunctionGroup(j, i, v[1], undefined, d); + formula.execFunctionGroup(i, j, v[1], undefined, d); cell.f = v[2]; cell.v = v[1]; @@ -769,7 +769,7 @@ const luckysheetDropCell = { let f = "=" + formula.functionCopy(cell.f, "left", apply_end_c - j + 1); let v = formula.execfunction(f, i, j); - formula.execFunctionGroup(j, i, v[1], undefined, d); + formula.execFunctionGroup(i, j, v[1], undefined, d); cell.f = v[2]; cell.v = v[1];