tables-pack
v2.3.0
Published
封装公用table组件
Downloads
5
Readme
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;