forked from alibaba/rax
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableDemo.js
More file actions
48 lines (41 loc) · 722 Bytes
/
Copy pathTableDemo.js
File metadata and controls
48 lines (41 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import {Component, createElement, render } from 'rax';
import Table from '../../packages/rax-table/src/';
const columns = [
{
title: 'Mobile',
dataIndex: 'mobile',
width: 210
},
{
title: 'Name',
dataIndex: 'name',
width: 280
},
{
title: 'Age',
dataIndex: 'age'
},
{
title: 'Sex',
dataIndex: 'sex'
},
];
const dataSource = [];
for (let i = 0; i < 100; i++) {
dataSource.push({
mobile: '12345678',
sex: 'male',
name: 'Jack',
age: 20
});
}
class TableDemo extends Component {
render() {
return (
<Table width={750} height={640} columns={columns} dataSource={dataSource} />
);
}
}
let styles = {
};
export default TableDemo;