fix: fix Table slot warning

This commit is contained in:
陈凯龙 2022-04-26 15:08:33 +08:00
parent 00d947e2f8
commit 0eac05d4f9
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ export default defineComponent({
v?.formatter?.(data.row, data.column, data.row[v.field], data.$index) ||
data.row[v.field],
// @ts-ignore
header: getSlot(slots, `${v.field}-header`)
header: () => getSlot(slots, `${v.field}-header`) || v.label
}}
</ElTableColumn>
)