本帖最后由 Wilson.Zhang 于 2024-7-1 18:51 编辑
代客户发帖
产品:SpreadJS
版本:V17.0.9
调研编号:SJS-24546
lastReview:2024-07-01
该问题已在17.1.0版本修复。
复现代码如下:
- window.onload = function () {[/color]
- let designerConfig = JSON.parse(
- JSON.stringify(GC.Spread.Sheets.Designer.DefaultConfig)
- );
- let spread = new GC.Spread.Sheets.Workbook(
- document.getElementById("gc-sheets-container"),
- { sheetCount: 1 }
- );
- let sheet = spread.getActiveSheet();
- window.spread = spread;
- window.sheet = sheet;
- document.querySelector("#button1").addEventListener("click", function () {
- let designer = new GC.Spread.Sheets.Designer.Designer(
- "gc-designer-container",
- designerConfig
- );
- designer.setWorkbook(spread);
- });
- document.querySelector("#button2").addEventListener("click", function () {});
- };
复制代码
|
|