md
This commit is contained in:
parent
cc31812ca0
commit
62c577c869
@ -368,6 +368,11 @@ export default {
|
|||||||
var st = selList[i].offsetHeight + selList[i].offsetTop;
|
var st = selList[i].offsetHeight + selList[i].offsetTop;
|
||||||
|
|
||||||
if (sl > _l && st > _t && selList[i].offsetLeft < _l + _w && selList[i].offsetTop < _t + _h) {
|
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) {
|
if (selList[i].className.indexOf("seled") == -1) {
|
||||||
selList[i].className = selList[i].className + " seled";
|
selList[i].className = selList[i].className + " seled";
|
||||||
const cellInfo=getCellPosition(selList[i]);
|
const cellInfo=getCellPosition(selList[i]);
|
||||||
@ -445,6 +450,12 @@ export default {
|
|||||||
cell = cell.parentElement;
|
cell = cell.parentElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(cell.className.indexOf("--selection") != -1 ){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 选中和取消选中
|
// 选中和取消选中
|
||||||
if(cell.className.indexOf("seled") != -1 ){
|
if(cell.className.indexOf("seled") != -1 ){
|
||||||
cell.classList.remove("seled");
|
cell.classList.remove("seled");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user