File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ const UserList = ({
148
148
title: ' 姓名' ,
149
149
dataIndex: ' name' ,
150
150
key: ' name' ,
151
- render : (text ) => < a href= " #" > {text}< / a> ,
151
+ render (text) => < a href= " #" > {text}< / a> ,
152
152
}, {
153
153
title: ' 年龄' ,
154
154
dataIndex: ' age' ,
@@ -160,7 +160,7 @@ const UserList = ({
160
160
}, {
161
161
title: ' 操作' ,
162
162
key: ' operation' ,
163
- render : (text , record ) => (
163
+ render (text, record) => (
164
164
< p>
165
165
< a onClick= {()=> {}}> 编辑< / a>
166
166
& nbsp;
@@ -172,7 +172,7 @@ const UserList = ({
172
172
}];
173
173
174
174
// 定义分页对象
175
- const pagination = {
175
+ const pagination = {
176
176
total,
177
177
current,
178
178
pageSize: 10 ,
@@ -200,7 +200,7 @@ export default UserList;
200
200
需要注意的是,由于我们采用了 antd,所以我们需要在我们的代码中添加样式,可以在 ` ./src/index.jsx ` 中添加一行:
201
201
202
202
``` jsx
203
- + import ' antd/dist/antd.css' ;
203
+ import ' antd/dist/antd.css' ;
204
204
```
205
205
206
206
这样我们使用的的 antd 组件就可以展示出样子了:
You can’t perform that action at this time.
0 commit comments