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:
brunnerh 2024-04-28 14:07:53 +02:00
commit 2b6c7b0ade
7 changed files with 73 additions and 21 deletions

View file

@ -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>