mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
docs: Table - Fixed header - English Translation (#3278)
This commit is contained in:
parent
e1b1f7f374
commit
b3729806ef
@ -21,15 +21,15 @@ Display large amounts of data in scrollable view.
|
|||||||
import { Table } from 'antd';
|
import { Table } from 'antd';
|
||||||
|
|
||||||
const columns = [{
|
const columns = [{
|
||||||
title: '姓名',
|
title: 'Name',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
width: 150,
|
width: 150,
|
||||||
}, {
|
}, {
|
||||||
title: '年龄',
|
title: 'Age',
|
||||||
dataIndex: 'age',
|
dataIndex: 'age',
|
||||||
width: 150,
|
width: 150,
|
||||||
}, {
|
}, {
|
||||||
title: '住址',
|
title: 'Address',
|
||||||
dataIndex: 'address',
|
dataIndex: 'address',
|
||||||
}];
|
}];
|
||||||
|
|
||||||
@ -37,9 +37,9 @@ const data = [];
|
|||||||
for (let i = 0; i < 100; i++) {
|
for (let i = 0; i < 100; i++) {
|
||||||
data.push({
|
data.push({
|
||||||
key: i,
|
key: i,
|
||||||
name: `李大嘴${i}`,
|
name: `Edward King ${i}`,
|
||||||
age: 32,
|
age: 32,
|
||||||
address: `西湖区湖底公园${i}号`,
|
address: `London, Park Lane no. ${i}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user