1.0.1 • Published 3 years ago

anchor-components-table-fusion v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

anchor-components-table-fusion

anchoremc component libs table

NPM JavaScript Style Guide

Install

npm install --save anchor-components-table-fusion

Usage

import React, { Component } from 'react'
import {
  TableSelectionMode,
  TableComponent
} from 'anchor-components-table-fusion'
import { Table } from '@alifd/next'

class Example extends Component {
  render() {
    const tableDataSource = [
      {
        id: '1',
        name: '张三',
        gender: '男',
        birthData: '2000-01-01'
      },
      {
        id: '2',
        name: '李四',
        gender: '男',
        birthData: '1990-01-01'
      },
      {
        id: '3',
        name: '王五',
        gender: '男',
        birthData: '1996-01-01'
      }
    ]
    return (
      <div style={{ padding: 15 }}>
        <TableComponent dataSource={tableDataSource}>
          <Table.Column title='编号' dataIndex='id' />
          <Table.Column title='姓名' dataIndex='name' />
          <Table.Column title='性别' dataIndex='gender' />
          <Table.Column title='出生日期' dataIndex='birthData' />
        </TableComponent>
      </div>
    )
  }
}

License

MIT © https://github.com/devfpy

1.0.1

3 years ago

1.0.0

3 years ago