Jump To …

index.jsx demo

import React, {Component} from 'react';
import PropTypes from 'prop-types';

import Table from 'antd/lib/table';
import Beatle from 'beatle';

class BaseListScene extends Component {
  static routeOptions = {
    title: '基础列表',
    layout: ['consoleLayout', 'contentLayout']
  }

  static propTypes = {
    list: PropTypes.object
  }

  componentDidMount() {
    this
      .props
      .list
      .getList();
  }

  render() {
    return (
      <div className="j-scene j-scene-baseList">
        <Table
          rowKey="id"
          columns={[]}
          dataSource={this.props.list.list.data}
          scroll={{
            x: 1500,
            y: 300
          }}
          loading={this.props.list.list.metric.loading} />
      </div>
    );
  }
}

export default Beatle.connect(['list'], BaseListScene);