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

fix: 修复create之后,直接调用insertRow,导致公式计算报错 #1429

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions src/global/formula.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down