chroe: add a note comment about table's dataIndex

This commit is contained in:
Wei Zhu 2018-12-25 16:31:02 +08:00
parent 96e1d770ec
commit 405bc9783b

View File

@ -19,7 +19,7 @@ export interface ColumnProps<T> {
}, },
) => React.ReactNode); ) => React.ReactNode);
key?: React.Key; key?: React.Key;
dataIndex?: string; dataIndex?: string; // Note: We can not use generic type here, since we need to support nested key, see #9393
render?: (text: any, record: T, index: number) => React.ReactNode; render?: (text: any, record: T, index: number) => React.ReactNode;
align?: 'left' | 'right' | 'center'; align?: 'left' | 'right' | 'center';
filters?: ColumnFilterItem[]; filters?: ColumnFilterItem[];