Skip to content

Commit 823229e

Browse files
fix: table slot type optimization (#7288)
1 parent b91709e commit 823229e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎components/table/Table.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -654,17 +654,14 @@ const Table = defineComponent({
654654
summary?: any;
655655
expandedRowRender?: any;
656656
expandColumnTitle?: any;
657-
bodyCell?: {
657+
bodyCell?: (props: {
658658
text: any;
659659
value: any;
660660
record: Record<string, any>;
661661
index: number;
662662
column: ColumnType;
663-
};
664-
headerCell?: {
665-
title: any;
666-
column: ColumnType;
667-
};
663+
}) => void;
664+
headerCell?: (props: { title: any; column: ColumnType }) => void;
668665
customFilterIcon?: any;
669666
customFilterDropdown?: any;
670667
default: any;

0 commit comments

Comments
 (0)