|
@@ -1,5 +1,4 @@
|
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
-import { Table } from 'antd';
|
|
|
|
|
|
|
|
|
|
class HomePage extends React.Component {
|
|
class HomePage extends React.Component {
|
|
|
constructor(props) {
|
|
constructor(props) {
|
|
@@ -10,36 +9,8 @@ class HomePage extends React.Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
- const columns = [{
|
|
|
|
|
- title: 'HomePage',
|
|
|
|
|
- key: 'c1',
|
|
|
|
|
- dataIndex: 'name'
|
|
|
|
|
- }, {
|
|
|
|
|
- title: '创建人',
|
|
|
|
|
- key: 'c2',
|
|
|
|
|
- dataIndex: 'c2'
|
|
|
|
|
- }, {
|
|
|
|
|
- title: '最近修改时间',
|
|
|
|
|
- key: 'c3',
|
|
|
|
|
- dataIndex: 'c3'
|
|
|
|
|
- }, {
|
|
|
|
|
- title: '操作',
|
|
|
|
|
- key: 'c4',
|
|
|
|
|
- dataIndex: 'c4'
|
|
|
|
|
- }];
|
|
|
|
|
-
|
|
|
|
|
- const data = [{
|
|
|
|
|
- key: '1',
|
|
|
|
|
- c1: 'sssss',
|
|
|
|
|
- c2: 'aaaaa'
|
|
|
|
|
- }, {
|
|
|
|
|
- key: '2',
|
|
|
|
|
- c1: '啊啊啊啊',
|
|
|
|
|
- c2: 'aaaadddbb'
|
|
|
|
|
- }]
|
|
|
|
|
-
|
|
|
|
|
return (
|
|
return (
|
|
|
- <Table columns={columns} dataSource={data}/>
|
|
|
|
|
|
|
+ <div>主页</div>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|