From bbbf21f0f577d827b27a87cc19eec48218e20300 Mon Sep 17 00:00:00 2001 From: danranvm Date: Sat, 8 Oct 2022 15:04:32 +0800 Subject: [PATCH] fix(comp:table): th with center align not work --- packages/components/table/src/main/head/HeadCell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/table/src/main/head/HeadCell.tsx b/packages/components/table/src/main/head/HeadCell.tsx index 75a1d584c..d5f65457d 100644 --- a/packages/components/table/src/main/head/HeadCell.tsx +++ b/packages/components/table/src/main/head/HeadCell.tsx @@ -71,7 +71,7 @@ export default defineComponent({ [`${prefixCls}-cell-${type}`]: !!type, [`${prefixCls}-cell-filterable`]: !!filterable, [`${prefixCls}-cell-sortable`]: !!sortable, - [`${prefixCls}-cell-align-center`]: hasChildren, + [`${prefixCls}-cell-align-center`]: hasChildren || align === 'center', [`${prefixCls}-cell-align-end`]: !hasChildren && align === 'end', [`${prefixCls}-cell-ellipsis`]: !!ellipsis, }