diff --git a/components/table/Table.tsx b/components/table/Table.tsx index b35acb4c39..8e89902e69 100755 --- a/components/table/Table.tsx +++ b/components/table/Table.tsx @@ -948,7 +948,7 @@ export default class Table extends React.Component, TableState< className={classString} expandIconColumnIndex={expandIconColumnIndex} expandIconAsCell={expandIconAsCell} - emptyText={() => locale.emptyText} + emptyText={locale.emptyText} /> ); } diff --git a/components/table/interface.tsx b/components/table/interface.tsx index 437743561a..3334d21fbc 100644 --- a/components/table/interface.tsx +++ b/components/table/interface.tsx @@ -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';