Browse Source

fix: 修复在禁止编辑下,仍然可以拖动行高列宽的问题

master
菜猫子neko 4 years ago
parent
commit
26bef655c0
  1. 8
      src/controllers/rowColumnOperation.js

8
src/controllers/rowColumnOperation.js

@ -912,6 +912,10 @@ export function rowColumnOperationInitial(){
//表格行标题 改变行高按钮 //表格行标题 改变行高按钮
$("#luckysheet-rows-change-size").mousedown(function (event) { $("#luckysheet-rows-change-size").mousedown(function (event) {
// *如果禁止前台编辑,则中止下一步操作
if (!checkIsAllowEdit()) {
return
}
//有批注在编辑时 //有批注在编辑时
luckysheetPostil.removeActivePs(); luckysheetPostil.removeActivePs();
@ -956,6 +960,10 @@ export function rowColumnOperationInitial(){
//表格列标题 改变列宽按钮 //表格列标题 改变列宽按钮
$("#luckysheet-cols-change-size").mousedown(function (event) { $("#luckysheet-cols-change-size").mousedown(function (event) {
// *如果禁止前台编辑,则中止下一步操作
if (!checkIsAllowEdit()) {
return
}
//有批注在编辑时 //有批注在编辑时
luckysheetPostil.removeActivePs(); luckysheetPostil.removeActivePs();

Loading…
Cancel
Save