File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
examples/vanilla/basic/src
packages/table-core/src/utils Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type Person = {
1212 status : string
1313 progress : number
1414}
15- /*
15+
1616const data : Person [ ] = [
1717 {
1818 firstName : 'tanner' ,
@@ -39,9 +39,6 @@ const data: Person[] = [
3939 progress : 10 ,
4040 } ,
4141] ;
42- */
43-
44- const data = new Array ( 50000 ) . fill ( { } ) ;
4542
4643const columnHelper = createColumnHelper < Person > ( )
4744
@@ -99,11 +96,6 @@ const renderTable = () => {
9996 theadElement . appendChild ( trElement )
10097 } )
10198
102-
103- table . getRowModel ( ) ;
104-
105-
106- /*
10799 // Render table rows
108100 table . getRowModel ( ) . rows . forEach ( ( row , idx ) => {
109101 if ( idx > 10 ) return ;
@@ -120,7 +112,6 @@ const renderTable = () => {
120112 tbodyElement . appendChild ( trElement )
121113 } )
122114
123- /*
124115 // Render table footers
125116 table . getFooterGroups ( ) . forEach ( footerGroup => {
126117 const trElement = document . createElement ( 'tr' )
@@ -134,8 +125,6 @@ const renderTable = () => {
134125 tfootElement . appendChild ( trElement )
135126 } )
136127
137- */
138-
139128 // Clear previous content and append new content
140129 const wrapperElement = document . getElementById ( 'wrapper' ) as HTMLDivElement
141130 wrapperElement . innerHTML = ''
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ export function getCoreRowModel<TData extends RowData>(): (
7171 return rows
7272 }
7373
74- console . time ( 'accessRows' ) ;
7574 rowModel . rows = accessRows ( data )
76- console . timeEnd ( 'accessRows' ) ;
7775
7876 return rowModel
7977 } ,
You can’t perform that action at this time.
0 commit comments