fix: formatting

This commit is contained in:
Philipp Dormann 2023-04-12 19:56:29 +02:00
parent 52a02c82d2
commit 9def0b27c9
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314
2 changed files with 69 additions and 70 deletions

View File

@ -214,7 +214,7 @@
/> />
</th> </th>
{#each headerGroup.headers as header} {#each headerGroup.headers as header}
<TableHeader {header}></TableHeader> <TableHeader {header} />
{/each} {/each}
</tr> </tr>
{/each} {/each}
@ -245,7 +245,6 @@
</table> </table>
</div> </div>
<div class="h-2" /> <div class="h-2" />
{/if} {/if}
{/if} {/if}
<TableBottom {table} {selected}></TableBottom> <TableBottom {table} {selected} />

View File

@ -1,8 +1,8 @@
<script> <script>
export let table; export let table;
export let selected; export let selected;
</script> </script>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<button <button
class="border rounded p-1" class="border rounded p-1"
@ -63,9 +63,9 @@
<option value={pageSize}>{pageSize}</option> <option value={pageSize}>{pageSize}</option>
{/each} {/each}
</select> </select>
</div> </div>
<!-- <pre>{JSON.stringify($table.getState(), null, 2)}</pre> --> <!-- <pre>{JSON.stringify($table.getState(), null, 2)}</pre> -->
<div> <div>
{Object.keys(selected).length} of{" "} {Object.keys(selected).length} of{" "}
{$table.getPreFilteredRowModel().rows.length} Total Rows Selected {$table.getPreFilteredRowModel().rows.length} Total Rows Selected
</div> </div>