mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
Merge 992ee13626
into ea7c0d446e
This commit is contained in:
commit
f4282037a6
1 changed files with 9 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue