您好,经调研,在Designer中设置行高消耗时间较长,是个bug ,我将此贴移至bug反馈区,待有进展,会及时联系您。
同时也提供给您其他方案,
如下代码:
- const designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("gc-designer-container"));
- const spread = designer.getWorkbook();
- const sheet = spread.getActiveSheet();
- console.time('time')
- sheet.suspendPaint()
- spread.suspendEvent();
- sheet.setRowCount(6000)
- sheet.getRange(0, -1, 4999, -1).height(200)
- spread.resumeEvent();
- sheet.setRowHeight(4999,200);
- sheet.resumePaint()
- console.timeEnd('time')
复制代码 在Designer中设置5000行行高,最后用时48ms
|
|