use arrow function

This commit is contained in:
afc163 2016-06-07 16:16:34 +08:00
parent 250df0f4e3
commit 57ab8dfdfe

View File

@ -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',