mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 01:52:03 +00:00
fix: change_header_position_start event add argumment
This commit is contained in:
parent
e5ed4bcbe9
commit
da6b074bf3
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user