diff --git a/components/transfer/index.tsx b/components/transfer/index.tsx index df3270ff6b..f851acb677 100644 --- a/components/transfer/index.tsx +++ b/components/transfer/index.tsx @@ -30,7 +30,7 @@ export interface TransferProps { titles?: string[]; operations?: string[]; showSearch?: boolean; - filterOption: (inputValue: any, item: any) => boolean; + filterOption?: (inputValue: any, item: any) => boolean; searchPlaceholder?: string; notFoundContent?: React.ReactNode; footer?: (props: TransferListProps) => React.ReactNode; diff --git a/components/transfer/list.tsx b/components/transfer/list.tsx index 15f62afa41..185d5b4a70 100644 --- a/components/transfer/list.tsx +++ b/components/transfer/list.tsx @@ -22,7 +22,7 @@ export interface TransferListProps { titleText: string; dataSource: TransferItem[]; filter: string; - filterOption: (filterText: any, item: any) => boolean; + filterOption?: (filterText: any, item: any) => boolean; style?: React.CSSProperties; checkedKeys: string[]; handleFilter: (e: any) => void;