update demo

This commit is contained in:
afc163 2016-05-06 20:59:09 +08:00
parent 7b54c49235
commit 0dbf42a59c

View File

@ -12,9 +12,7 @@ const columns = [{
title: '姓名',
dataIndex: 'name',
key: 'name',
render(text) {
return <a href="#">{text}</a>;
}
render: (text) => <a href="#">{text}</a>,
}, {
title: '年龄',
dataIndex: 'age',
@ -26,20 +24,19 @@ const columns = [{
}, {
title: '操作',
key: 'operation',
render(text, record) {
return (
<span>
<a href="#">操作一{record.name}</a>
<span className="ant-divider"></span>
<a href="#">操作二</a>
<span className="ant-divider"></span>
<a href="#" className="ant-dropdown-link">
更多 <Icon type="down" />
</a>
</span>
);
},
render: (text, record) => (
<span>
<a href="#">操作一{record.name}</a>
<span className="ant-divider"></span>
<a href="#">操作二</a>
<span className="ant-divider"></span>
<a href="#" className="ant-dropdown-link">
更多 <Icon type="down" />
</a>
</span>
),
}];
const data = [{
key: '1',
name: '胡彦斌',