Skip to content

Commit 82d959c

Browse files
committed
chore: virtual
1 parent 32c8b4a commit 82d959c

File tree

7 files changed

+3
-3
lines changed

7 files changed

+3
-3
lines changed

docs/examples/virtual.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import '../../assets/index.less';
33
import type { ColumnsType } from '../../src/interface';
4-
import Table from '../../src/StaticTable';
4+
import { VirtualTable } from '../../src';
55

66
interface RecordType {
77
a: string;
@@ -195,7 +195,7 @@ const Demo = () => {
195195
<input type="checkbox" checked={scrollY} onChange={() => setScrollY(!scrollY)} />
196196
Scroll Y
197197
</label>
198-
<Table
198+
<VirtualTable
199199
columns={columns}
200200
// expandedRowRender={({ b, c }) => b || c}
201201
scroll={{ x: 1200, y: scrollY ? 200 : null }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EXPAND_COLUMN, INTERNAL_HOOKS } from './constant';
22
import { FooterComponents as Summary } from './Footer';
3-
import VirtualTable, { genVirtualTable } from './StaticTable';
3+
import VirtualTable, { genVirtualTable } from './VirtualTable';
44
import Column from './sugar/Column';
55
import ColumnGroup from './sugar/ColumnGroup';
66
import type { TableProps } from './Table';

0 commit comments

Comments
 (0)