fix: fix clearFilters paramter ts type error (#51754)

This commit is contained in:
fubd 2024-11-29 10:03:16 +08:00 committed by GitHub
parent 5cee2b658f
commit d9f37fe635
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,11 @@ export interface FilterConfirmProps {
closeDropdown: boolean;
}
export interface FilterRestProps {
confirm?: boolean;
closeDropdown?: boolean;
}
export interface FilterDropdownProps {
prefixCls: string;
setSelectedKeys: (selectedKeys: React.Key[]) => void;
@ -108,7 +113,7 @@ export interface FilterDropdownProps {
* {closeDropdown: true}
*/
confirm: (param?: FilterConfirmProps) => void;
clearFilters?: () => void;
clearFilters?: (param?: FilterRestProps) => void;
filters?: ColumnFilterItem[];
/** Only close filterDropdown */
close: () => void;