Skip to content

Commit

Permalink
fix: fix Table slot warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong502431556 committed Apr 26, 2022
1 parent 00d947e commit 0eac05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Table/src/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
Expand Down

0 comments on commit 0eac05d

Please sign in to comment.