Browse Source

fix: filterOption of Transfer should be optional, close: #6856

pull/6870/head
Benjy Cui 7 years ago
parent
commit
8173007402
  1. 2
      components/transfer/index.tsx
  2. 2
      components/transfer/list.tsx

2
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;

2
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;

Loading…
Cancel
Save