20w行数据时,设置行hover状态时,渲染慢
代码如下:
- var sheet = spread.getSheet(0);
- sheet.setRowCount(200000)
- sheet.suspendPaint();
- const start = new Date().getTime();
- const cfs = sheet.conditionalFormats;
- const rowCount = sheet.getRowCount();
- const columnCount = sheet.getColumnCount();
- cfs.addRowStateRule(GC.Spread.Sheets.RowColumnStates.hover, new GC.Spread.Sheets.Style('#f4f5f5'), [
- new GC.Spread.Sheets.Range(0, 0, rowCount, columnCount),
- ]);
- console.log('duration updateStyle01', new Date().getTime() - start);
- sheet.resumePaint();
复制代码 平均耗时1s,有没有优化空间
【】
|
|