CustomHearderCellType.prototype.getHitInfo = function ( x, y, cellStyle, cellRect, context ) {
let rowCount = context.sheet.getRowCount();
var hitInfo = {
x: x,
y: y,
row: context.row,
col: context.col,
cellRect: cellRect,
sheetArea: context.sheetArea,
sheet: context.sheet,
rowCount: rowCount
};
console.log(hitInfo.col, 'getHitInfo');
return hitInfo;
};
CustomHearderCellType.prototype.processMouseDown = function(hitInfo){
hitInfo.sheet.endEdit(true);
console.log(hitInfo.col,'processMouseDown');
hitInfo.mouseDownCol = hitInfo.col;
}
CustomHearderCellType.prototype.processMouseUp = function (hitInfo) {
console.log(hitInfo.col, 'processMouseUp');
// if(hitInfo.mouseDownCol === hitInfo.col){
// console.log('click');
// }else{
// console.log('move');
// }
};
鼠标在col=3落下--》鼠标移动至col=4--〉鼠标抬起hitinfo.col竟然=3???不应该是4么?
|
|