Skip to content

Commit

Permalink
chore: virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Aug 20, 2023
1 parent 32c8b4a commit 82d959c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/examples/virtual.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import '../../assets/index.less';
import type { ColumnsType } from '../../src/interface';
import Table from '../../src/StaticTable';
import { VirtualTable } from '../../src';

interface RecordType {
a: string;
Expand Down Expand Up @@ -195,7 +195,7 @@ const Demo = () => {
<input type="checkbox" checked={scrollY} onChange={() => setScrollY(!scrollY)} />
Scroll Y
</label>
<Table
<VirtualTable
columns={columns}
// expandedRowRender={({ b, c }) => b || c}
scroll={{ x: 1200, y: scrollY ? 200 : null }}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EXPAND_COLUMN, INTERNAL_HOOKS } from './constant';
import { FooterComponents as Summary } from './Footer';
import VirtualTable, { genVirtualTable } from './StaticTable';
import VirtualTable, { genVirtualTable } from './VirtualTable';
import Column from './sugar/Column';
import ColumnGroup from './sugar/ColumnGroup';
import type { TableProps } from './Table';
Expand Down

0 comments on commit 82d959c

Please sign in to comment.