mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
update demo
This commit is contained in:
parent
7b54c49235
commit
0dbf42a59c
@ -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: '胡彦斌',
|
||||
|
Loading…
Reference in New Issue
Block a user