mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
parent
ed395e42b7
commit
2b9e614e48
5 changed files with 6 additions and 6 deletions
|
@ -963,7 +963,7 @@ export interface DataTableRow {
|
||||||
[key: string]: DataTableValue;
|
[key: string]: DataTableValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DataTableRowId = string;
|
export type DataTableRowId = any;
|
||||||
|
|
||||||
export interface DataTableCell {
|
export interface DataTableCell {
|
||||||
key: DataTableKey;
|
key: DataTableKey;
|
||||||
|
|
|
@ -2431,9 +2431,9 @@
|
||||||
"ts": "interface DataTableRow { id: any; [key: string]: DataTableValue; }"
|
"ts": "interface DataTableRow { id: any; [key: string]: DataTableValue; }"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "any",
|
||||||
"name": "DataTableRowId",
|
"name": "DataTableRowId",
|
||||||
"ts": "type DataTableRowId = string"
|
"ts": "type DataTableRowId = any"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "{ key: DataTableKey; value: DataTableValue; display?: (item: Value) => DataTableValue; }",
|
"type": "{ key: DataTableKey; value: DataTableValue; display?: (item: Value) => DataTableValue; }",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @typedef {{ key: DataTableKey; value: DataTableValue; display?: (item: Value) => DataTableValue; sort?: false | ((a: DataTableValue, b: DataTableValue) => (0 | -1 | 1)); columnMenu?: boolean; }} DataTableNonEmptyHeader
|
* @typedef {{ key: DataTableKey; value: DataTableValue; display?: (item: Value) => DataTableValue; sort?: false | ((a: DataTableValue, b: DataTableValue) => (0 | -1 | 1)); columnMenu?: boolean; }} DataTableNonEmptyHeader
|
||||||
* @typedef {DataTableNonEmptyHeader | DataTableEmptyHeader} DataTableHeader
|
* @typedef {DataTableNonEmptyHeader | DataTableEmptyHeader} DataTableHeader
|
||||||
* @typedef {{ id: any; [key: string]: DataTableValue; }} DataTableRow
|
* @typedef {{ id: any; [key: string]: DataTableValue; }} DataTableRow
|
||||||
* @typedef {string} DataTableRowId
|
* @typedef {any} DataTableRowId
|
||||||
* @typedef {{ key: DataTableKey; value: DataTableValue; display?: (item: Value) => DataTableValue; }} DataTableCell
|
* @typedef {{ key: DataTableKey; value: DataTableValue; display?: (item: Value) => DataTableValue; }} DataTableCell
|
||||||
* @slot {{ row: DataTableRow; }} expanded-row
|
* @slot {{ row: DataTableRow; }} expanded-row
|
||||||
* @slot {{ header: DataTableNonEmptyHeader; }} cell-header
|
* @slot {{ header: DataTableNonEmptyHeader; }} cell-header
|
||||||
|
|
|
@ -172,7 +172,7 @@
|
||||||
]}"
|
]}"
|
||||||
rows="{[
|
rows="{[
|
||||||
{
|
{
|
||||||
id: 'a',
|
id: 0,
|
||||||
name: 'Load Balancer 3',
|
name: 'Load Balancer 3',
|
||||||
protocol: 'HTTP',
|
protocol: 'HTTP',
|
||||||
port: 3000,
|
port: 3000,
|
||||||
|
|
2
types/DataTable/DataTable.d.ts
vendored
2
types/DataTable/DataTable.d.ts
vendored
|
@ -28,7 +28,7 @@ export interface DataTableRow {
|
||||||
[key: string]: DataTableValue;
|
[key: string]: DataTableValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DataTableRowId = string;
|
export type DataTableRowId = any;
|
||||||
|
|
||||||
export interface DataTableCell {
|
export interface DataTableCell {
|
||||||
key: DataTableKey;
|
key: DataTableKey;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue