mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(data-table-skeleton): revert unkeyed each
This commit is contained in:
parent
b5d67c84e1
commit
a3b2cdb5fd
1 changed files with 6 additions and 5 deletions
|
@ -35,9 +35,10 @@
|
|||
$: values = headers.map((header) =>
|
||||
header.value !== undefined ? header.value : header
|
||||
);
|
||||
$: cols = Array.from({
|
||||
length: headers.length > 0 ? headers.length : columns,
|
||||
}).fill();
|
||||
$: cols = Array.from(
|
||||
{ length: headers.length > 0 ? headers.length : columns },
|
||||
(_, i) => i
|
||||
);
|
||||
</script>
|
||||
|
||||
<div
|
||||
|
@ -85,9 +86,9 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{#each Array.from({ length: rows }).fill() as row}
|
||||
{#each Array.from({ length: rows }, (_, i) => i) as row (row)}
|
||||
<tr>
|
||||
{#each cols as col}
|
||||
{#each cols as col (col)}
|
||||
<td><span></span></td>
|
||||
{/each}
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue