本帖最后由 鸳鸯配2024 于 2024-8-7 17:16 编辑
刚刚好像丢失了一些内容。
不可见的代码,其实是这样的
- let Designer = GC.Spread.Sheets.Designer.findControl('designer-container')
- let spread = Designer.getWorkbook()
- let sheet = spread.getActiveSheet();
- let temConfig = {
- col: 8,
- colCount: 2,
- name: "表单2",
- row: 3,
- rowCount: 2,
- type: 1,
- }
- for (let i = 0; i <= temConfig .colCount; i++) {
- for (let j = 0; j <= temConfig .rowCount; j++) {
- sheet.setValue(temConfig .row + j, temConfig .col + i, '****');
- style.backColor = '#C3C3C3';
- sheet.setStyle(temConfig .row + j, temConfig .col + i, style);
- }
- }
复制代码
|