File tree 2 files changed +0
-74
lines changed
2 files changed +0
-74
lines changed Original file line number Diff line number Diff line change 1
- ``` jsx
2
- const dataSource = [
3
- {
4
- key: ' 1' ,
5
- name: ' Mike' ,
6
- age: 32 ,
7
- address: ' 10 Downing Street' ,
8
- },
9
- {
10
- key: ' 2' ,
11
- name: ' John' ,
12
- age: 42 ,
13
- address: ' 10 Downing Street' ,
14
- },
15
- ];
16
-
17
- const columns = [
18
- {
19
- title: ' Name' ,
20
- dataIndex: ' name' ,
21
- key: ' name' ,
22
- },
23
- {
24
- title: ' Age' ,
25
- dataIndex: ' age' ,
26
- key: ' age' ,
27
- },
28
- {
29
- title: ' Address' ,
30
- dataIndex: ' address' ,
31
- key: ' address' ,
32
- },
33
- ];
34
-
35
- < Table dataSource= {dataSource} columns= {columns} / > ;
36
- ```
37
-
38
1
## API
39
2
40
3
### Table
Original file line number Diff line number Diff line change 1
- ``` jsx
2
- const dataSource = [
3
- {
4
- key: ' 1' ,
5
- name: ' 胡彦斌' ,
6
- age: 32 ,
7
- address: ' 西湖区湖底公园1号' ,
8
- },
9
- {
10
- key: ' 2' ,
11
- name: ' 胡彦祖' ,
12
- age: 42 ,
13
- address: ' 西湖区湖底公园1号' ,
14
- },
15
- ];
16
-
17
- const columns = [
18
- {
19
- title: ' 姓名' ,
20
- dataIndex: ' name' ,
21
- key: ' name' ,
22
- },
23
- {
24
- title: ' 年龄' ,
25
- dataIndex: ' age' ,
26
- key: ' age' ,
27
- },
28
- {
29
- title: ' 住址' ,
30
- dataIndex: ' address' ,
31
- key: ' address' ,
32
- },
33
- ];
34
-
35
- < Table dataSource= {dataSource} columns= {columns} / > ;
36
- ```
37
-
38
1
## API
39
2
40
3
### Table
You can’t perform that action at this time.
0 commit comments