mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
fix(BasicTable): headerCell slot title not exist
This commit is contained in:
parent
40aac6544c
commit
8df2590aae
@ -150,9 +150,7 @@ export function useColumns(
|
|||||||
const { slots, customRender, format, edit, editRow, flag } = column;
|
const { slots, customRender, format, edit, editRow, flag } = column;
|
||||||
|
|
||||||
if (!slots || !slots?.title) {
|
if (!slots || !slots?.title) {
|
||||||
// column.slots = { title: `header-${dataIndex}`, ...(slots || {}) };
|
|
||||||
column.customTitle = column.title;
|
column.customTitle = column.title;
|
||||||
Reflect.deleteProperty(column, 'title');
|
|
||||||
}
|
}
|
||||||
const isDefaultAction = [INDEX_COLUMN_FLAG, ACTION_COLUMN_FLAG].includes(flag!);
|
const isDefaultAction = [INDEX_COLUMN_FLAG, ACTION_COLUMN_FLAG].includes(flag!);
|
||||||
if (!customRender && format && !edit && !isDefaultAction) {
|
if (!customRender && format && !edit && !isDefaultAction) {
|
||||||
|
Loading…
Reference in New Issue
Block a user