Browse Source

fix(transfer): footer类型定义支持direction (#34337)

pull/34411/head
Fisher 3 years ago
committed by GitHub
parent
commit
793b61e9db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/transfer/index.tsx

4
components/transfer/index.tsx

@ -79,7 +79,9 @@ export interface TransferProps<RecordType> {
showSearch?: boolean; showSearch?: boolean;
filterOption?: (inputValue: string, item: RecordType) => boolean; filterOption?: (inputValue: string, item: RecordType) => boolean;
locale?: Partial<TransferLocale>; locale?: Partial<TransferLocale>;
footer?: (props: TransferListProps<RecordType>) => React.ReactNode; footer?: (props: TransferListProps<RecordType>, info?: {
direction: TransferDirection;
}) => React.ReactNode;
rowKey?: (record: RecordType) => string; rowKey?: (record: RecordType) => string;
onSearch?: (direction: TransferDirection, value: string) => void; onSearch?: (direction: TransferDirection, value: string) => void;
onScroll?: (direction: TransferDirection, e: React.SyntheticEvent<HTMLUListElement>) => void; onScroll?: (direction: TransferDirection, e: React.SyntheticEvent<HTMLUListElement>) => void;

Loading…
Cancel
Save