docs: TableColumnConfig has been renamed to ColumnProps

Close #8438
pull/8440/merge
Wei Zhu 7 years ago
parent 3162dd3b51
commit 4d7ce541cd

@ -142,14 +142,14 @@ Properties for row selection.
```jsx
import { Table } from 'antd';
import { TableColumnConfig } from 'antd/lib/table/Table';
import { ColumnProps } from 'antd/lib/table';
interface IUser {
key: number,
name: string;
}
const columns: TableColumnConfig<IUser>[] = [{
const columns: ColumnProps<IUser>[] = [{
key: 'name',
title: 'Name',
dataIndex: 'name',

@ -142,14 +142,14 @@ const columns = [{
```jsx
import { Table } from 'antd';
import { TableColumnConfig } from 'antd/lib/table/Table';
import { ColumnProps } from 'antd/lib/table';
interface IUser {
key: number;
name: string;
}
const columns: TableColumnConfig<IUser>[] = [{
const columns: ColumnProps<IUser>[] = [{
key: 'name',
title: 'Name',
dataIndex: 'name',

Loading…
Cancel
Save