fix(BasicTable): headerCell slot title not exist

This commit is contained in:
Li Kui 2023-10-18 10:11:57 +08:00
parent 40aac6544c
commit 8df2590aae

View File

@ -150,9 +150,7 @@ export function useColumns(
const { slots, customRender, format, edit, editRow, flag } = column;
if (!slots || !slots?.title) {
// column.slots = { title: `header-${dataIndex}`, ...(slots || {}) };
column.customTitle = column.title;
Reflect.deleteProperty(column, 'title');
}
const isDefaultAction = [INDEX_COLUMN_FLAG, ACTION_COLUMN_FLAG].includes(flag!);
if (!customRender && format && !edit && !isDefaultAction) {