Skip to content

Commit

Permalink
refactor: onStart funciton add col row arguments #1214
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Mar 5, 2024
1 parent 59109bd commit 98307a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/vtable-editors/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export interface EditContext<V = any> {
* end edit mode.
*/
endEdit: () => void;
col: number;
row: number;
}

export interface RectProps {
Expand Down
4 changes: 3 additions & 1 deletion packages/vtable/src/edit/edit-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export class EditManeger {
this.completeEdit();
},
referencePosition,
container: this.table.getElement()
container: this.table.getElement(),
col,
row
});
}
}
Expand Down

0 comments on commit 98307a8

Please sign in to comment.