您好,可以通过事件来实现这个需求:
- sheet.bind(GC.Spread.Sheets.Events.RowChanged, function (e, info) {
- console.log(info);
- if (info.propertyName == 'addRows') {
- sheet.setRowHeight(info.row, 36);
- }
- });
- sheet.bind(GC.Spread.Sheets.Events.ColumnChanged, function (e, info) {
- console.log(info);
- if (info.propertyName == 'addColumns') {
- sheet.setColumnWidth(info.col, 36);
- }
- });
复制代码 |