This commit is contained in:
lalilaloe 2022-03-26 18:44:33 +00:00 committed by GitHub
commit f4282037a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,9 @@
/** Specify the number of rows */
export let rows = 5;
/** Specify the number of cols */
export let cols = 3;
/** Set to `true` to use the bordered variant */
export let border = false;
</script>
@ -22,17 +25,17 @@
class:bx--structured-list-row="{true}"
class:bx--structured-list-row--header-row="{true}"
>
<div class:bx--structured-list-th="{true}"><span></span></div>
<div class:bx--structured-list-th="{true}"><span></span></div>
<div class:bx--structured-list-th="{true}"><span></span></div>
{#each Array.from({ length: cols }, (_, i) => i) as row, i (row)}
<div class:bx--structured-list-th="{true}"><span></span></div>
{/each}
</div>
</div>
<div class:bx--structured-list-tbody="{true}">
{#each Array.from({ length: rows }, (_, i) => i) as row, i (row)}
<div class:bx--structured-list-row="{true}">
<div class:bx--structured-list-td="{true}"></div>
<div class:bx--structured-list-td="{true}"></div>
<div class:bx--structured-list-td="{true}"></div>
{#each Array.from({ length: cols }, (_, i) => i) as row, i (row)}
<div class:bx--structured-list-td="{true}"></div>
{/each}
</div>
{/each}
</div>