emptyText should support function, close #8871

pull/8939/head
afc163 7 years ago
parent 33119ec535
commit 63c620240b

@ -948,7 +948,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
className={classString}
expandIconColumnIndex={expandIconColumnIndex}
expandIconAsCell={expandIconAsCell}
emptyText={() => locale.emptyText}
emptyText={locale.emptyText}
/>
);
}

@ -47,11 +47,11 @@ export interface TableComponents {
export interface TableLocale {
filterTitle?: string;
filterConfirm?: string;
filterReset?: string;
emptyText?: string;
selectAll?: string;
selectInvert?: string;
filterConfirm?: React.ReactNode;
filterReset?: React.ReactNode;
emptyText?: React.ReactNode | (() => React.ReactNode);
selectAll?: React.ReactNode;
selectInvert?: React.ReactNode;
}
export type RowSelectionType = 'checkbox' | 'radio';

Loading…
Cancel
Save