10金币
本帖最后由 Richard.Huang 于 2024-5-16 15:21 编辑
产品:SpreadJS
版本:V15
调研编号:SJS-24028
- spread.bind(GC.Spread.Sheets.Events.ActiveSheetChanged, function (e, args) {
- let sheet = spread.getSheetFromName(args.newSheet.name() + "");
- if (!suspendMap[sheet.name()]) {
- sheet.suspendCalcService();
- suspendMap[sheet.name()] = true;
- console.log("计算挂起" + sheet.name());
- }
- });
- spread.bind(GC.Spread.Sheets.Events.CellChanged, function (e, info) {
- let sheet = spread.getActiveSheet();
- if (suspendMap[sheet.name()]) {
- sheet.resumeCalcService();
- sheet.resumeCalcService(true);
- suspendMap[sheet.name()] = false;
- console.log("计算恢复" + sheet.name());
- }
- });
复制代码
这个方案也不行 |
|