本帖最后由 Ellia.Duan 于 2023-1-16 15:51 编辑
问题描述:(1)定时器中的代码需要放在增量加载完成后再执行,V16.0.1中增量加载完成后的触发事件怎么写?
- loadFormData(blob) {
- let spread = this.spread;
- spread.import(blob, function () {}, function (err) {
- console.log(err);
- },
- {
- incrementalLoad: true, //增量加载
- fileType: GC.Spread.Sheets.FileType.ssjson
- })
- //_________这部分需要放在增量加载完成后再触发____________
- setTimeout(() => {
- spread.options.showDragDropTip = true;
- spread.options.showDragFillTip = true;
- for (let i = 0; i < spread.getSheetCount(); i++) {
- var sheet = spread.getSheet(i);
- sheet.options.rowHeaderVisible = false;
- sheet.options.colHeaderVisible = false;
- sheet.zoom(0.7)
- sheet.options.sheetTabColor = "white";
- sheet.visible(true);
- }
- spread.setActiveSheet(this.titleKey);
- spread.resumePaint();
- this.loadSpreadData()
- }, 2000) //spread加载完毕之后设置才生效
- //_____________________________________________
- },
复制代码
问题描述:(2)V16的授权码在前端怎么写,直接替换V15的授权码报错了。
|
|