- activeSheet.setDataSource(source);
- //自定义表格样式
- var tableStyle = new GC.Spread.Sheets.Tables.TableTheme();
- var thinBorder = new GC.Spread.Sheets.LineBorder("black", GC.Spread.Sheets.LineStyle.thin);
- tableStyle.wholeTableStyle(
- new GC.Spread.Sheets.Tables.TableStyle(
- "white",
- "black",
- "normal 10pt arial",
- thinBorder,
- thinBorder,
- thinBorder,
- thinBorder,
- thinBorder,
- thinBorder
- )
- );
- var table = activeSheet.tables.all();
- table.forEach((table: any) => {
- table.style(tableStyle);
- });
- console.log("获取到的table", table);
- activeSheet.invalidateLayout();
- activeSheet.repaint();
复制代码 |