tables-pack
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Author

你们的吴男神

tables-pack

封装公用table组件

install

npm install --save tables-pack

usage

 import React from 'react';
 import TableView from 'tables-pack';
 
 const App = () => (
   const tableViewProps = {
    rKey: 'id',
    otherProps: {
      dataSource: [
        {
          test1: 213,
          test2: 1221312,
        },
      ],
      pagination: {
        showSizeChanger: true,
        showQuickJumper: true,
        showTotal: (total) => `数据共${total}条`,
        total: 1,
        pageSize: 10,
        current: 1,
        pageSizeOptions: [10, 20, 40],
      },
    },
    columns: [
      {
        title: '测试1',
        dataIndex: 'test1',
        key: 'test1',
      },
      {
        title: '测试2',
        dataIndex: 'test2',
        key: 'test2',
      },
    ],
  };
  return <TableView {...tableViewProps} />;
 );
 export default App;

Preview

输入图片说明

Readme

Keywords

none

Package Sidebar

Install

npm i tables-pack

Weekly Downloads

1

Version

2.3.0

License

ISC

Unpacked Size

28.8 kB

Total Files

4

Last publish

Collaborators

  • wyz107635
  • awue