@@ -23,11 +23,15 @@ export const columnProps = {
23
23
align : PropTypes . oneOf ( tuple ( 'left' , 'right' , 'center' ) ) ,
24
24
ellipsis : PropTypes . looseBool ,
25
25
filters : PropTypes . arrayOf ( ColumnFilterItem ) ,
26
- // onFilter: (value: any, record: T) => PropTypes.looseBool,
26
+ onFilter : {
27
+ type : Function as PropType < ( value : any , record : any ) => boolean > ,
28
+ } ,
27
29
filterMultiple : PropTypes . looseBool ,
28
30
filterDropdown : PropTypes . any ,
29
31
filterDropdownVisible : PropTypes . looseBool ,
30
- // onFilterDropdownVisibleChange?: (visible: boolean) => void;
32
+ onFilterDropdownVisibleChange : {
33
+ type : Function as PropType < ( visible : boolean ) => void > ,
34
+ } ,
31
35
sorter : PropTypes . oneOfType ( [ PropTypes . looseBool , PropTypes . func ] ) ,
32
36
defaultSortOrder : PropTypes . oneOf ( tuple ( 'ascend' , 'descend' ) ) ,
33
37
colSpan : PropTypes . number ,
@@ -51,7 +55,13 @@ export const columnProps = {
51
55
} ;
52
56
53
57
export type ColumnProps = Partial < ExtractPropTypes < typeof columnProps > > & {
54
- slots ?: Record < string , string > ;
58
+ slots ?: {
59
+ title ?: string ;
60
+ filterIcon ?: string ;
61
+ filterDropdown ?: string ;
62
+ customRender ?: string ;
63
+ [ key : string ] : string ;
64
+ } ;
55
65
} ;
56
66
57
67
export interface TableComponents {
0 commit comments