This commit is contained in:
linfso 2024-07-19 08:26:50 +08:00
parent cc31812ca0
commit 62c577c869

View File

@ -368,6 +368,11 @@ export default {
var st = selList[i].offsetHeight + selList[i].offsetTop;
if (sl > _l && st > _t && selList[i].offsetLeft < _l + _w && selList[i].offsetTop < _t + _h) {
// 选择列不允许选择
if(selList[i].className.indexOf("--selection") != -1 ){
continue;
}
if (selList[i].className.indexOf("seled") == -1) {
selList[i].className = selList[i].className + " seled";
const cellInfo=getCellPosition(selList[i]);
@ -445,6 +450,12 @@ export default {
cell = cell.parentElement;
}
if(cell.className.indexOf("--selection") != -1 ){
return;
}
// 选中和取消选中
if(cell.className.indexOf("seled") != -1 ){
cell.classList.remove("seled");