wip イベント整理
This commit is contained in:
parent
f9516e6ae1
commit
777920d739
|
@ -1,6 +1,6 @@
|
|||
import { EventEmitter } from 'eventemitter3';
|
||||
import { CellValidator } from '@/components/grid/cell-validators.js';
|
||||
import { CellValue } from '@/components/grid/cell.js';
|
||||
import { CellValue, GridCell } from '@/components/grid/cell.js';
|
||||
|
||||
export type GridSetting = {
|
||||
rowNumberVisible: boolean;
|
||||
|
@ -47,6 +47,28 @@ export type CellValueChangedEvent = {
|
|||
value: CellValue;
|
||||
}
|
||||
|
||||
export type GridEvent = {
|
||||
current: {
|
||||
selectedCell: GridCell;
|
||||
rangedCells: GridCell[];
|
||||
rangedRows: GridRow[];
|
||||
state: GridState;
|
||||
rows: GridRow[];
|
||||
columns: GridColumn[];
|
||||
}
|
||||
}
|
||||
|
||||
export type GridPreKeyDownEvent = {
|
||||
type: 'pre-keydown';
|
||||
event: KeyboardEvent;
|
||||
prevent: boolean;
|
||||
} & GridEvent;
|
||||
|
||||
export type GridKeyDownEvent = {
|
||||
type: 'keydown';
|
||||
event: KeyboardEvent;
|
||||
} & GridEvent;
|
||||
|
||||
export class GridEventEmitter extends EventEmitter<{
|
||||
'forceRefreshContentSize': void;
|
||||
}> {
|
||||
|
|
Loading…
Reference in New Issue