feat(data-table): pass row index, cell index to "cell" slot (#1086)

This commit is contained in:
metonym 2022-02-11 07:13:55 -08:00 committed by GitHub
commit 3b70a35df6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 13 deletions

View file

@ -2429,7 +2429,7 @@
"name": "cell",
"default": false,
"fallback": "{cell.display ? cell.display(cell.value) : cell.value}",
"slot_props": "{ row: DataTableRow; cell: DataTableCell; }"
"slot_props": "{ row: DataTableRow; cell: DataTableCell; rowIndex: number; cellIndex: number; }"
},
{
"name": "cell-header",