update table demos

This commit is contained in:
afc163 2015-07-15 10:47:47 +08:00
parent 10a4d84b30
commit 4cd12077cb
3 changed files with 15 additions and 15 deletions

View File

@ -10,16 +10,16 @@
var Table = antd.Table; var Table = antd.Table;
var columns = [{ var columns = [{
title: '姓名', title: '姓名',
dataIndex: 'name' dataIndex: 'name',
render: function(text) {
return <a href="#">{text}</a>;
}
}, { }, {
title: '年龄', title: '年龄',
dataIndex: 'age' dataIndex: 'age'
}, { }, {
title: '住址', title: '住址',
dataIndex: 'address', dataIndex: 'address'
render: function(text) {
return <a href="#">{text}</a>;
}
}, { }, {
title: '操作', title: '操作',
dataIndex: '', dataIndex: '',

View File

@ -11,16 +11,16 @@ var Table = antd.Table;
var columns = [{ var columns = [{
title: '姓名', title: '姓名',
dataIndex: 'name' dataIndex: 'name',
render: function(text) {
return <a href="#">{text}</a>;
}
}, { }, {
title: '年龄', title: '年龄',
dataIndex: 'age' dataIndex: 'age'
}, { }, {
title: '住址', title: '住址',
dataIndex: 'address', dataIndex: 'address'
render: function(text) {
return <a href="#">{text}</a>;
}
}]; }];
var data = []; var data = [];

View File

@ -10,16 +10,16 @@
var Table = antd.Table; var Table = antd.Table;
var columns = [{ var columns = [{
title: '姓名', title: '姓名',
dataIndex: 'name' dataIndex: 'name',
render: function(text) {
return <a href="#">{text}</a>;
}
}, { }, {
title: '年龄', title: '年龄',
dataIndex: 'age' dataIndex: 'age'
}, { }, {
title: '住址', title: '住址',
dataIndex: 'address', dataIndex: 'address'
render: function(text) {
return <a href="#">{text}</a>;
}
}]; }];
var data = [{ var data = [{
name: '胡彦斌', name: '胡彦斌',