mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
use arrow function
This commit is contained in:
parent
250df0f4e3
commit
57ab8dfdfe
@ -11,9 +11,7 @@ import { Table } from 'antd';
|
|||||||
const columns = [{
|
const columns = [{
|
||||||
title: '姓名',
|
title: '姓名',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
render(text) {
|
render: text => <a href="#">{text}</a>,
|
||||||
return <a href="#">{text}</a>;
|
|
||||||
},
|
|
||||||
}, {
|
}, {
|
||||||
title: '年龄',
|
title: '年龄',
|
||||||
dataIndex: 'age',
|
dataIndex: 'age',
|
||||||
|
Loading…
Reference in New Issue
Block a user