首先设置spread.options.newTabVisible = false; 与spread.options.tabEditable = false;
接下来通过
spread.contextMenu.menuData获取右键菜单的数组,删除其中对应的插入sheet与删除sheet相关项:
{text: "插入", name: "designer.insertSheet", command: "gc.spread.contextMenu.insertSheet", workArea: "sheetTab"}
{text: "删除", name: "designer.deleteSheet", command: "gc.spread.contextMenu.deleteSheet", workArea: "sheetTab"} |