From bf47a7f6201d2c483fd26b4bcb60163d686f17a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=9C=E7=8C=AB=E5=AD=90neko?= <815743831@qq.com> Date: Fri, 19 Nov 2021 15:03:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3allowEdit=E4=B8=BAfals?= =?UTF-8?q?e=E6=97=B6=E4=BB=8D=E7=84=B6=E5=85=81=E8=AE=B8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E8=BE=B9=E6=A1=86=E7=BC=96=E8=BE=91=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/menuButton.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/controllers/menuButton.js b/src/controllers/menuButton.js index 18522a5..aabc918 100644 --- a/src/controllers/menuButton.js +++ b/src/controllers/menuButton.js @@ -942,7 +942,11 @@ const menuButton = { //边框设置 $("#luckysheet-icon-border-all").click(function(){ - + // *如果禁止前台编辑,则中止下一步操作 + if (!checkIsAllowEdit()) { + tooltip.info("", locale().pivotTable.errorNotAllowEdit); + return + } if(!checkProtectionFormatCells(Store.currentSheetIndex)){ return; } @@ -1100,6 +1104,11 @@ const menuButton = { // border choose menu $menuButton.find(".luckysheet-cols-menuitem").click(function(){ + // *如果禁止前台编辑,则中止下一步操作 + if (!checkIsAllowEdit()) { + tooltip.info("", locale().pivotTable.errorNotAllowEdit); + return + } $menuButton.hide(); luckysheetContainerFocus();