| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import React from 'react';
- import { Table } from 'antd';
- class TableView extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- }
- }
- render() {
- const columns = [{
- title: '名称',
- 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 (
- <Table columns={columns} dataSource={data}/>
- );
- }
- }
- export default TableView;
|