forked from huge/frontEnd/hugeOA

Mr Ke
2020-04-06 c2866301131db5f8433ff80a15a7404ac1b5522e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* eslint-disable */
/**柯礼钦
 * 4/6/2020, 11:03:52 AM
 * doc comment for the file goes here
 */
 
/** 榜单table列表 */
import React, { ReactNode, ReactEventHandler, Component } from 'react';
import { Table, Row, Col } from 'antd';
import './index.scss';
 
 
export default class TopListTableView extends Component {
  constructor(props) {
    super(props);
    this.config = {
    };
    this.state = {
    };
  }
 
  componentWillMount() { }
 
  componentDidMount() { }
 
  renderDom = () => {
    return <div className="top-list-table-view-main-table">
      <div className="top-list-table-view-main-table-title">主题</div>
      <Table
        dataSource={[{ age: 1 }]}
        columns={[{
          title: '年龄',
          dataIndex: 'age',
          key: 'age'
        }]}
        size="small"
        bordered={false}
        pagination={false}
      />
    </div>
  }
 
  render() {
 
    return (
      <div className="top-list-table-view-main">
        <Row type="flex" gutter={12}>
          {
            [1, 2, 3].map((item, idx) => {
              return <Col span={24 / 3} key={idx}>{this.renderDom()}</Col>;
            })
          }
        </Row>
      </div>
    )
  }
}