Commit 8f1bd4ae764777113af7ab0c2cc2052cff62babf
1 parent
5c24a1c4
fix: Table Title Error 2
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Table/src/components/HeaderCell.vue
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | const { prefixCls } = useDesign('basic-table-header-cell'); | 29 | const { prefixCls } = useDesign('basic-table-header-cell'); |
30 | 30 | ||
31 | const getIsEdit = computed(() => !!props.column?.edit); | 31 | const getIsEdit = computed(() => !!props.column?.edit); |
32 | - const getTitle = computed(() => props.column?.customTitle); | 32 | + const getTitle = computed(() => props.column?.customTitle || props.column?.title); |
33 | const getHelpMessage = computed(() => props.column?.helpMessage); | 33 | const getHelpMessage = computed(() => props.column?.helpMessage); |
34 | 34 | ||
35 | return { prefixCls, getIsEdit, getTitle, getHelpMessage }; | 35 | return { prefixCls, getIsEdit, getTitle, getHelpMessage }; |