Skip to content

Commit

Permalink
fix(table-sheet): 修复明细表配置自定义行高后展示异常 close #2501 (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Jan 23, 2024
1 parent 5f2c582 commit 47fdee3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/s2-core/__tests__/bugs/issue-2501-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const s2Options: S2Options = {
describe('Table Sheet Row Offsets Tests', () => {
let s2: SpreadSheet;

beforeEach(() => {
beforeEach(async () => {
s2 = new TableSheet(getContainer(), s2DataConfig, s2Options);

s2.render();
await s2.render();
});

test('should get correctly row offset data', () => {
Expand Down
4 changes: 4 additions & 0 deletions packages/s2-core/src/facet/base-facet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ export abstract class BaseFacet {
scrollY: number,
): PanelIndexes;

public abstract getViewCellHeights(
layoutResult?: LayoutResult,
): ViewCellHeights;

public abstract getViewCellHeights(): ViewCellHeights;

public abstract addDataCell(cell: DataCell): void;
Expand Down

0 comments on commit 47fdee3

Please sign in to comment.