Skip to content

Commit 52828d3

Browse files
committed
Problem described in #37
1 parent 53f559a commit 52828d3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/routes/+page.svelte

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
let reader;
2222
let allFiles;
2323
24-
let textureFiles = $state.raw([]);
24+
let textureFiles = $state([{ filename: 'example1', compressedSize: 0 }]);
2525
let tableItems = $derived.by(() => {
2626
// return textureFiles.map((file) => ({ filename: file.filename }));
27-
return [{ length: textureFiles.length }];
27+
return textureFiles;
2828
// return [{ name: 'example1' }, { name: 'example2' }].map((file) => ({ filename: file.name }));
2929
});
3030
@@ -101,7 +101,12 @@
101101
</Card>
102102

103103
<Card class="max-w-xl gap-2 p-4">
104-
<Table items={tableItems}></Table>
104+
<Table
105+
items={tableItems}
106+
onRefresh={console.log}
107+
onSearch={console.log}
108+
onUpdate={console.log}
109+
></Table>
105110
</Card>
106111
</div>
107112
</div>

0 commit comments

Comments
 (0)