fix(Table): pass header colspan to th (#3926)

This commit is contained in:
Igor G
2025-04-22 18:07:23 +04:00
committed by GitHub
parent 5fc6312ab1
commit 122e8ac8f4

View File

@@ -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()">