2.3.0 • Published 2 years ago
tables-pack v2.3.0
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
2.3.0
2 years ago
2.2.1
2 years ago
2.2.2
2 years ago
2.2.0
3 years ago
2.0.3
3 years ago
2.1.1
3 years ago
2.0.2
3 years ago
2.0.5
3 years ago
2.0.4
3 years ago
2.1.0
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.0.1
3 years ago