mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
This commit is contained in:
parent
7459fdb08b
commit
827a9822e7
4 changed files with 5 additions and 3 deletions
|
@ -1844,7 +1844,7 @@
|
|||
"ts": "interface DataTableCell { key: DataTableKey; value: DataTableValue; }"
|
||||
}
|
||||
],
|
||||
"rest_props": { "type": "InlineComponent", "name": "TableContainer" }
|
||||
"rest_props": { "type": "Element", "name": "div" }
|
||||
},
|
||||
{
|
||||
"moduleName": "DataTableSkeleton",
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
* @event {DataTableRow} mouseleave:row
|
||||
* @event {{ expanded: boolean; row: DataTableRow; }} click:row--expand
|
||||
* @event {DataTableCell} click:cell
|
||||
* @restProps {div}
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<DataTable headers="{headers}" rows="{rows}" />
|
||||
<DataTable headers="{headers}" rows="{rows}" style="" class="class" />
|
||||
|
||||
<DataTable headers="{headers}" rows="{rows}">
|
||||
<span slot="cell-header" let:header>
|
||||
|
|
3
types/DataTable/DataTable.d.ts
vendored
3
types/DataTable/DataTable.d.ts
vendored
|
@ -35,7 +35,8 @@ export interface DataTableCell {
|
|||
value: DataTableValue;
|
||||
}
|
||||
|
||||
export interface DataTableProps {
|
||||
export interface DataTableProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Specify the data table headers
|
||||
* @default []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue