1金币
最佳答案您好,请参考以下代码:
let designer = GC.Spread.Sheets.Designer.findControl(document.querySelector(".gc-designer-container"));
let spread = designer.getWorkbook();
let sheet = spread.getActiveSheet()
var area1 = {
fieldName: "amount"
};
var style2 = new GC.Spread.Sheets.Style();
style2.formatter = "#,##0";
var pivotTable = sheet.pivotTables.all()[0];
pivotTable.setStyle(area1, ...
| |
| |
| |
| |
| |
| |