Skip to content

Commit

Permalink
chore: 类型修改
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Dec 5, 2023
1 parent d254c30 commit 2c40b87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { RowCell } from '../../../../src/cell';
import { getCellMeta } from '@/utils/interaction/select-event';
import type { BaseRowCell } from '@/cell/base-row-cell';
import { CellTypes, InteractionStateName } from '@/common/constant/interaction';
import type { S2Options } from '@/common/interface';
import { Store } from '@/common/store';
Expand All @@ -25,7 +25,7 @@ describe('State Controller Utils Tests', () => {
id: `root[&]price`,
};
},
} as unknown as BaseRowCell;
} as unknown as RowCell;

let mockInstance: SpreadSheet;

Expand Down
6 changes: 2 additions & 4 deletions packages/s2-core/src/common/interface/emitter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { Event as CanvasEvent } from '@antv/g-canvas';
import type { ColCell } from '../../cell/col-cell';
import type { DataCell } from '../../cell/data-cell';
import type { BaseRowCell } from '../../cell/base-row-cell';
import type { ColCell, DataCell, RowCell } from '../../cell';
import type { S2Event } from '../../common/constant';
import type {
CellMeta,
Expand Down Expand Up @@ -106,7 +104,7 @@ export interface EmitterType {
data: RowCellCollapseTreeRowsType,
) => void;
[S2Event.ROW_CELL_SCROLL]: (position: CellScrollPosition) => void;
[S2Event.ROW_CELL_BRUSH_SELECTION]: (cells: BaseRowCell[]) => void;
[S2Event.ROW_CELL_BRUSH_SELECTION]: (cells: RowCell[]) => void;

/** ================ Col Cell ================ */
[S2Event.COL_CELL_MOUSE_DOWN]: CanvasEventHandler;
Expand Down

0 comments on commit 2c40b87

Please sign in to comment.