mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
fix(Table): pass header colspan to th (#3926)
This commit is contained in:
@@ -322,6 +322,7 @@ defineExpose({
|
||||
v-for="header in headerGroup.headers"
|
||||
:key="header.id"
|
||||
:data-pinned="header.column.getIsPinned()"
|
||||
:colspan="header.colSpan > 1 ? header.colSpan : undefined"
|
||||
:class="ui.th({ class: [props.ui?.th, header.column.columnDef.meta?.class?.th], pinned: !!header.column.getIsPinned() })"
|
||||
>
|
||||
<slot :name="`${header.id}-header`" v-bind="header.getContext()">
|
||||
|
||||
Reference in New Issue
Block a user