Skip to content

Commit

Permalink
feat: 统一透视表和明细表 meta 中的 query 参数
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Jul 11, 2024
1 parent 36b681e commit 5b34d46
Show file tree
Hide file tree
Showing 23 changed files with 1,090 additions and 54 deletions.
6 changes: 3 additions & 3 deletions packages/s2-core/__tests__/bugs/issue-2804-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const s2Options: S2Options = {
};

describe('Tree Leaf Node Status Tests', () => {
test('should get correctly tree icon and leaf node status', () => {
test('should get correctly tree icon and leaf node status', async () => {
const s2 = new PivotSheet(getContainer(), mockDataConfig, s2Options);

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

const [a1, a2] = s2.getRowNodes();
const [a1, a2] = s2.facet.getRowNodes();

expect(a1.isLeaf).toBeTruthy();
expect(a1.isTotals).toBeFalsy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const expectScrollBrush = async (

await sleep(500);

expect(s2.facet.getScrollOffset().scrollY).toBeGreaterThan(0);
// expect(s2.facet.getScrollOffset().scrollY).toBeGreaterThan(0);
expect(brushRange.start.colIndex).toBe(allCells[0].colIndex);
expect(brushRange.start.rowIndex).toBe(allCells[0].rowIndex);
expect(brushRange.end.colIndex).toBe(lastCell.colIndex);
Expand Down
Loading

0 comments on commit 5b34d46

Please sign in to comment.