From 2435571fe995f0718d2c710a70623ba34f810076 Mon Sep 17 00:00:00 2001 From: 2450357564 <46582006+2450357564@users.noreply.github.com> Date: Fri, 20 Oct 2023 10:55:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=A3=B0=E6=98=8Ewindow=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 From c6ba2fa12a9ab08383a60a6ab2bf266f821be5d5 Mon Sep 17 00:00:00 2001 From: 2450357564 <46582006+2450357564@users.noreply.github.com> Date: Fri, 20 Oct 2023 10:56:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20window=E4=B8=8A=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=E8=BF=81=E7=A7=BB=E5=88=B0core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global/formula.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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 = {};