docs: Table - Fixed columns - English Translation (#3279)

pull/3289/head
kvetoslavnovak 8 years ago committed by Benjy Cui
parent 74ae8f4283
commit 54994bf136

@ -25,35 +25,35 @@ Fix some columns and scroll in other columns. You must set `scoll.x` meanwhile.
import { Table } from 'antd';
const columns = [
{ title: '姓名', width: 100, dataIndex: 'name', key: 'name', fixed: 'left' },
{ title: '年龄', width: 100, dataIndex: 'age', key: 'age', fixed: 'left' },
{ title: '1', dataIndex: 'address', key: '1' },
{ title: '2', dataIndex: 'address', key: '2' },
{ title: '3', dataIndex: 'address', key: '3' },
{ title: '4', dataIndex: 'address', key: '4' },
{ title: '5', dataIndex: 'address', key: '5' },
{ title: '6', dataIndex: 'address', key: '6' },
{ title: '7', dataIndex: 'address', key: '7' },
{ title: '8', dataIndex: 'address', key: '8' },
{ title: 'Full Name', width: 100, dataIndex: 'name', key: 'name', fixed: 'left' },
{ title: 'Age', width: 100, dataIndex: 'age', key: 'age', fixed: 'left' },
{ title: 'Column 1', dataIndex: 'address', key: '1' },
{ title: 'Column 2', dataIndex: 'address', key: '2' },
{ title: 'Column 3', dataIndex: 'address', key: '3' },
{ title: 'Column 4', dataIndex: 'address', key: '4' },
{ title: 'Column 5', dataIndex: 'address', key: '5' },
{ title: 'Column 6', dataIndex: 'address', key: '6' },
{ title: 'Column 7', dataIndex: 'address', key: '7' },
{ title: 'Column 8', dataIndex: 'address', key: '8' },
{
title: '操作',
title: 'Action',
key: 'operation',
fixed: 'right',
width: 100,
render: () => <a href="#">操作</a>,
render: () => <a href="#">action</a>,
},
];
const data = [{
key: '1',
name: '胡彦斌',
name: 'John Brown',
age: 32,
address: '西湖区湖底公园0号',
address: 'New York No. 1 Lake Park',
}, {
key: '2',
name: '胡彦祖',
name: 'Jim Green',
age: 40,
address: '西湖区湖底公园1号',
address: 'London No. 1 Lake Park',
}];
function App() {

Loading…
Cancel
Save