本帖最后由 爱心觉罗晓宇 于 2023-10-27 09:22 编辑
目
前实现了全部不可编辑但是个别不能编辑还没实现 var sheet = this.spread.getActiveSheet();
let option = {
allowSelectLockedCells: false,
allowSelectUnlockedCells: false,
allowFilter: false,
allowSort: false,
allowResizeRows: false,
allowResizeColumns: false,
allowEditObjects: false,
allowDragInsertRows: false,
allowDragInsertColumns: false,
allowInsertRows: false,
allowInsertColumns: false,
allowDeleteRows: false,
allowDeleteColumns: false
};
sheet.options.protectionOptions = option;
sheet.options.isProtected = true;
this.spread.options.newTabVisible = false // 隐藏加号+
sheet.clearSelection();
// 获取电子表格中的工作表数量
|