rax-table

0.6.5 • Public • Published

Table

npm

Install

$ npm install rax-table --save

Usage

import Table from 'rax-table';
 
const columns = [
  {
    title: 'Mobile',
    dataIndex: 'mobile',
    width: 210
  },
  {
    title: 'Name',
    dataIndex: 'name',
    width: 280
  },
  {
    title: 'Age',
    dataIndex: 'age'
  },
  {
    title: 'Sex',
    dataIndex: 'sex'
  },
];
 
const dataSource = [];
 
for (let i = 0; i < 100; i++) {
  dataSource.push({
    mobile: '12345678',
    sex: 'male',
    name: 'Jack',
    age: 20
  });
}
 
class TableDemo extends Component {
  render() {
    return (
      <Table width={750} height={640} columns={columns} dataSource={dataSource} />
    );
  }
}

Package Sidebar

Install

npm i rax-table

Weekly Downloads

7

Version

0.6.5

License

BSD-3-Clause

Unpacked Size

409 kB

Total Files

12

Last publish

Collaborators

  • wintercn
  • yacheng
  • yuanyan
  • zeroling