|
@@ -252,7 +252,8 @@ let colSettingObj = {
|
|
|
sheet.setColumnCount(1);
|
|
|
sheet.getRange(-1, 0, -1, 1).cellType(this.checkBox).hAlign(GC.Spread.Sheets.HorizontalAlign.center);
|
|
|
sheet.getCell(0, 0, GC.Spread.Sheets.SheetArea.colHeader).value('显示');
|
|
|
- sheet.setColumnWidth(0, 300);
|
|
|
+ sheet.setColumnWidth(0, 100);
|
|
|
+ sheet.setColumnWidth(0, 150, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
|
|
|
setting.cols.forEach(function (col, index) {
|
|
|
let i, iCol = 0, cell;
|
|
@@ -269,7 +270,7 @@ let colSettingObj = {
|
|
|
;
|
|
|
let colWidth = sheet.getColumnWidth(index, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
colWidth = colWidth > col.width ? colWidth : col.width;
|
|
|
- sheet.setColumnWidth(index, colWidth, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
+ //sheet.setColumnWidth(index, colWidth, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
|
cell = sheet.getCell(index, 0).value(col.visible);
|
|
|
sheet.autoFitRow(index);
|
|
|
});
|