diff --git a/src/core.js b/src/core.js index 4afdc297..28c59d30 100644 --- a/src/core.js +++ b/src/core.js @@ -36,6 +36,32 @@ import { hideloading, showloading } from "./global/loading.js"; import { luckysheetextendData } from "./global/extend.js"; import { initChat } from './demoData/chat.js' +import { + luckysheet_compareWith, + luckysheet_getarraydata, + luckysheet_getcelldata, + luckysheet_parseData, + luckysheet_getValue, + luckysheet_indirect_check, + luckysheet_indirect_check_return, + luckysheet_offset_check, + luckysheet_calcADPMM, + luckysheet_getSpecialReference, +} from "./function/func"; + +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; + window.luckysheet_calcADPMM = luckysheet_calcADPMM; + window.luckysheet_getSpecialReference = luckysheet_getSpecialReference; +} + let luckysheet = {}; // mount api diff --git a/src/global/formula.js b/src/global/formula.js index 5faa9747..d60eb87d 100644 --- a/src/global/formula.js +++ b/src/global/formula.js @@ -5264,18 +5264,18 @@ const luckysheetformula = { 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; - window.luckysheet_calcADPMM = luckysheet_calcADPMM; - window.luckysheet_getSpecialReference = luckysheet_getSpecialReference; - } + // 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; + // window.luckysheet_calcADPMM = luckysheet_calcADPMM; + // window.luckysheet_getSpecialReference = luckysheet_getSpecialReference; + // } if (_this.execFunctionGlobalData == null) { _this.execFunctionGlobalData = {};