We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 012b68f + 5ac461d commit 3d24b72Copy full SHA for 3d24b72
components/vc-table/src/TableHeaderRow.jsx
@@ -28,9 +28,7 @@ const TableHeaderRow = {
28
const { column, children, className, ...cellProps } = cell
29
const cls = cell.class || className
30
const customProps = column.customHeaderCell ? column.customHeaderCell(column) : {}
31
- if (column.align) {
32
- cellProps.style = { textAlign: column.align }
33
- }
+
34
const headerCellProps = mergeProps({
35
attrs: {
36
...cellProps,
@@ -40,6 +38,11 @@ const TableHeaderRow = {
40
38
...customProps,
41
39
key: column.key || column.dataIndex || i,
42
})
+ if (column.align) {
43
+ headerCellProps.style = { textAlign: column.align }
44
+ }
45
46
if (typeof HeaderCell === 'function') {
47
return HeaderCell(h, headerCellProps, children)
48
}
0 commit comments