您好,用如下代码设置单元格保护之后,为何第2行编辑不了,从第3行开始才能编辑???
var defaultStyle = sheet.getDefaultStyle(GC.Spread.Sheets.SheetArea.viewport);
defaultStyle.locked = false;
sheet.setDefaultStyle(defaultStyle, GC.Spread.Sheets.SheetArea.viewport);
var option = {
allowFilter: false,
allowSort: false,
allowResizeRows: true,
allowResizeColumns: true,
allowEditObjects: true,
allowInsertRows:true,
allowInsertColumns: false,
allowDeleteRows:true,
allowDragInsertRows: true
};
sheet.options.protectionOptions = option;
sheet.options.isProtected = true;
|
|