没起作用啊
let spread = new GC.Spread.Sheets.Workbook(this.$refs.spreadExcel,{calcOnDemand: true , tabStripVisible:true});
let sheet = spread.getActiveSheet();
sheet.setValue(0, 3, '这个列头标题有点长', GC.Spread.Sheets.SheetArea.colHeader);
sheet.setValue(0, 3, '这是一句很长很长的话', GC.Spread.Sheets.SheetArea.viewport);
var rows = [ { row: 0 },{ row: 1 },{ row: 2 },{ row: 3 },{ row: 4 } ];
spread.commandManager().execute({cmd: "autoFitRow", sheetName: "Sheet1", rows: rows, columnHeader: true, autoFitType: GC.Spread.Sheets.AutoFitType.cell});
|