mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 05:58:07 +01:00
feat(Table): pass row index to table cell (#291)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
committed by
Benjamin Canac
parent
0272307f28
commit
71c2465d7b
@@ -28,7 +28,7 @@
|
||||
</td>
|
||||
|
||||
<td v-for="(column, subIndex) in columns" :key="subIndex" :class="[ui.td.base, ui.td.padding, ui.td.color, ui.td.font, ui.td.size]">
|
||||
<slot :name="`${column.key}-data`" :column="column" :row="row">
|
||||
<slot :name="`${column.key}-data`" :column="column" :row="row" :index="index">
|
||||
{{ row[column.key] }}
|
||||
</slot>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user