|
@ -46,7 +46,7 @@ export type SelectAllLabel = |
|
|
| ((info: { selectedCount: number; totalCount: number }) => React.ReactNode); |
|
|
| ((info: { selectedCount: number; totalCount: number }) => React.ReactNode); |
|
|
|
|
|
|
|
|
export interface TransferLocale { |
|
|
export interface TransferLocale { |
|
|
titles: string[]; |
|
|
titles: React.ReactNode[]; |
|
|
notFoundContent?: React.ReactNode; |
|
|
notFoundContent?: React.ReactNode; |
|
|
searchPlaceholder: string; |
|
|
searchPlaceholder: string; |
|
|
itemUnit: string; |
|
|
itemUnit: string; |
|
@ -72,7 +72,7 @@ export interface TransferProps<RecordType> { |
|
|
style?: React.CSSProperties; |
|
|
style?: React.CSSProperties; |
|
|
listStyle: ((style: ListStyle) => React.CSSProperties) | React.CSSProperties; |
|
|
listStyle: ((style: ListStyle) => React.CSSProperties) | React.CSSProperties; |
|
|
operationStyle?: React.CSSProperties; |
|
|
operationStyle?: React.CSSProperties; |
|
|
titles?: string[]; |
|
|
titles?: React.ReactNode[]; |
|
|
operations?: string[]; |
|
|
operations?: string[]; |
|
|
showSearch?: boolean; |
|
|
showSearch?: boolean; |
|
|
filterOption?: (inputValue: string, item: RecordType) => boolean; |
|
|
filterOption?: (inputValue: string, item: RecordType) => boolean; |
|
@ -164,7 +164,7 @@ class Transfer<RecordType extends TransferItem = TransferItem> extends React.Com |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
getTitles(transferLocale: TransferLocale): string[] { |
|
|
getTitles(transferLocale: TransferLocale): React.ReactNode[] { |
|
|
const { titles } = this.props; |
|
|
const { titles } = this.props; |
|
|
if (titles) { |
|
|
if (titles) { |
|
|
return titles; |
|
|
return titles; |
|
|