mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
1419538ea7
* asd * changes * fix everything * cleanup * add changeset * fix casing * lockfile * fix casing * fix ci, enable linting * fix test * add changeset * add changeset * delete changeset * fix dirs * fix casing * fix notebooks * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing * fix casing --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
24 lines
457 B
Svelte
24 lines
457 B
Svelte
<script lang="ts">
|
|
export let value: (string | number)[][];
|
|
</script>
|
|
|
|
<table class="input-dataframe-example">
|
|
{#each value.slice(0, 3) as row}
|
|
<tr>
|
|
{#each row.slice(0, 3) as cell}
|
|
<td class="p-2">{cell}</td>
|
|
{/each}
|
|
{#if row.length > 3}
|
|
<td class="p-2">...</td>
|
|
{/if}
|
|
</tr>
|
|
{/each}
|
|
{#if value.length > 3}
|
|
<tr>
|
|
{#each Array(Math.min(4, value[0].length)) as _}
|
|
<td class="p-2">...</td>
|
|
{/each}
|
|
</tr>
|
|
{/if}
|
|
</table>
|