diff --git a/components/table/interface.tsx b/components/table/interface.tsx index 9175562808..6ae0ebf46c 100644 --- a/components/table/interface.tsx +++ b/components/table/interface.tsx @@ -19,7 +19,7 @@ export interface ColumnProps { }, ) => React.ReactNode); key?: React.Key; - dataIndex?: keyof T; + dataIndex?: string; render?: (text: any, record: T, index: number) => React.ReactNode; align?: 'left' | 'right' | 'center'; filters?: ColumnFilterItem[];