mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
Set cols for StructuredListSkeleton
This commit is contained in:
parent
66a3fd10c2
commit
992ee13626
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>
|
||||
|
@ -21,17 +24,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