Browse Source

fix: Table Title Error 2

JinMao 3 years ago
parent
commit
8f1bd4ae76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Table/src/components/HeaderCell.vue

+ 1 - 1
src/components/Table/src/components/HeaderCell.vue

@@ -29,7 +29,7 @@
       const { prefixCls } = useDesign('basic-table-header-cell');
 
       const getIsEdit = computed(() => !!props.column?.edit);
-      const getTitle = computed(() => props.column?.customTitle);
+      const getTitle = computed(() => props.column?.customTitle || props.column?.title);
       const getHelpMessage = computed(() => props.column?.helpMessage);
 
       return { prefixCls, getIsEdit, getTitle, getHelpMessage };