你好,columnList是这样来的- const columns = (targetTable as any).toJSON().columns
- const columnList: GC.Spread.Sheets.Tables.TableColumn[] = []
- columns &&
- columns.forEach((col: { id: number; name: string }, index: number) => {
- const tableColumn = new GC.Spread.Sheets.Tables.TableColumn(
- col.id,
- col.name,
- col.name,
- sheet.getFormatter(sRow + 1, sCol + index, GC.Spread.Sheets.SheetArea.viewport),
- )
- columnList.push(tableColumn)
- })
复制代码 |