fix: change_header_position_start event add argumment

This commit is contained in:
fangsmile 2024-10-11 16:54:51 +08:00 committed by Rui-Sun
parent e5ed4bcbe9
commit da6b074bf3
3 changed files with 4 additions and 2 deletions

View File

@ -594,6 +594,7 @@ export class EventManager {
this.table._canDragHeaderPosition(eventArgs.col, eventArgs.row)
) {
this.table.stateManager.startMoveCol(
eventArgs.event.nativeEvent,
eventArgs.col,
eventArgs.row,
eventArgsSet.abstractPos.x,

View File

@ -557,6 +557,7 @@ export function bindTableGroupListener(eventManager: EventManager) {
}
} else if ((hitIcon.attribute as any).funcType === IconFuncTypeEnum.dragReorder) {
stateManager.startMoveCol(
e.nativeEvent,
eventArgsSet.eventArgs.col,
eventArgsSet.eventArgs.row,
eventArgsSet.abstractPos.x,

View File

@ -802,9 +802,9 @@ export class StateManager {
this.fillHandle.beforeFillMinRow = undefined;
}
startMoveCol(col: number, row: number, x: number, y: number) {
startMoveCol(event: MouseEvent | PointerEvent | TouchEvent, col: number, row: number, x: number, y: number) {
startMoveCol(col, row, x, y, this);
this.table.fireListeners(TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION_START, { col, row, x, y });
this.table.fireListeners(TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION_START, { col, row, x, y, event });
}
updateMoveCol(col: number, row: number, x: number, y: number) {
updateMoveCol(col, row, x, y, this);