Lib: Hide table header if no data is passed
This commit is contained in:
@ -15,6 +15,7 @@
|
|||||||
let { data, columns, handler = undefined }: TableProps = $props();
|
let { data, columns, handler = undefined }: TableProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{#if data.length > 0}
|
||||||
<div class="table-container bg-white shadow">
|
<div class="table-container bg-white shadow">
|
||||||
<table class="table table-compact bg-white">
|
<table class="table table-compact bg-white">
|
||||||
<thead>
|
<thead>
|
||||||
@ -47,3 +48,4 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user