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

Commit

Permalink
fix(fix): fix byg
Browse files Browse the repository at this point in the history
  • Loading branch information
tubiaoge committed Jul 31, 2020
1 parent e90e579 commit d9fb5fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 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 + 1;
index = strIndex + i;
break;
}
else if(cellNull.length > 1){
Expand Down
18 changes: 12 additions & 6 deletions src/global/formula.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { luckysheetRangeLast } from './cursorPos';
import { jfrefreshgrid } from './refresh';
// import luckysheet_function from '../function/luckysheet_function';
// import functionlist from '../function/functionlist';
import { luckysheet_compareWith, luckysheet_getcelldata, luckysheet_indirect_check, luckysheet_indirect_check_return, luckysheet_offset_check } from '../function/func';
import { luckysheet_compareWith, luckysheet_getarraydata, luckysheet_getcelldata, luckysheet_parseData, luckysheet_getValue, luckysheet_indirect_check, luckysheet_indirect_check_return, luckysheet_offset_check } from '../function/func';
import Store from '../store';
import locale from '../locale/locale';

Expand Down Expand Up @@ -4369,11 +4369,6 @@ const luckysheetformula = {
}
},
checkSpecialFunctionRange: function (function_str, r, c, dynamicArray_compute) {
if (!window.luckysheet_indirect_check) {
window.luckysheet_indirect_check = luckysheet_indirect_check;
window.luckysheet_indirect_check_return = luckysheet_indirect_check_return;
window.luckysheet_offset_check = luckysheet_offset_check;
}
if (function_str.substr(0, 20) == "luckysheet_function.") {
let funcName = function_str.split(".")[1];
if (funcName != null) {
Expand Down Expand Up @@ -4429,6 +4424,17 @@ const luckysheetformula = {
if (data == null) {
data = Store.flowdata;
}

if (!window.luckysheet_compareWith) {
window.luckysheet_compareWith = luckysheet_compareWith;
window.luckysheet_getarraydata = luckysheet_getarraydata;
window.luckysheet_getcelldata = luckysheet_getcelldata;
window.luckysheet_parseData = luckysheet_parseData;
window.luckysheet_getValue = luckysheet_getValue;
window.luckysheet_indirect_check = luckysheet_indirect_check;
window.luckysheet_indirect_check_return = luckysheet_indirect_check_return;
window.luckysheet_offset_check = luckysheet_offset_check;
}

_this.execFunctionGroupData = $.extend(true, [], data);

Expand Down

0 comments on commit d9fb5fe

Please sign in to comment.