mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
Tweaks to DataTable generics (#1968)
Adjust DataTable types. - Make key in `cell` slot prop less strict to prevent type errors in markup. - Resolve property path names up to one level deep for header keys.
This commit is contained in:
parent
140e8ff468
commit
e49369ef02
7 changed files with 79 additions and 27 deletions
|
@ -54,11 +54,7 @@
|
|||
];
|
||||
</script>
|
||||
|
||||
<DataTable
|
||||
sortable
|
||||
headers="{headers}"
|
||||
rows="{rows}"
|
||||
>
|
||||
<DataTable sortable headers="{headers}" rows="{rows}">
|
||||
<span slot="cell" let:cell>
|
||||
{#if cell.key === "overflow"}
|
||||
<OverflowMenu flipped>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue