feat(data-table): make cells slottable

This commit is contained in:
Eric Liu 2020-10-17 14:31:57 -07:00
commit c0fbd24e2a
2 changed files with 78 additions and 3 deletions

View file

@ -185,7 +185,7 @@
});
}}"
>
{header.value}
<slot name="cell-header" header="{header}">{header.value}</slot>
</TableHeader>
{/each}
</TableRow>
@ -231,7 +231,7 @@
dispatch('click:cell', cell);
}}"
>
{cell.value}
<slot name="cell" row="{row}" cell="{cell}">{cell.value}</slot>
</TableCell>
{/each}
</TableRow>