Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
fast-table-pro
Advanced tools
React 表格组件,支持多数据首次快速渲染
https://paul-long.github.io/react-components/
npm install fast-table-pro --save-dev
props | describe | type | default value |
---|---|---|---|
bordered | show bordered | Boolean | false |
bodyMaxHeight | body max height | Number or String | |
className | custom class | String | |
colMinWidth | min column width | Number | 100 |
columns | set table header | Array[] | - |
dataSource | data | Array[] | |
defaultShowCount | default show rows | Number | 30 |
emptyText | empty show | Function | () => '暂无数据' |
expandedRowByClick | on click row expanded | Boolean | true |
expandedRowKeys | expanded rows | String[] | |
expandedRowRender | expanded render | Function | |
fixedHeader | fixed header | Boolean | true |
footerHeight | Footer height | Number | 30 |
getRowHeight | span row | Function(record, index):Number | () => 1 |
headerRowHeight | header row height | Number | 35 |
headerSortable | header sortable | Boolean | false |
pullDown | pull data | Boolean | false |
indentSize | expanded indent size | Number | 17 |
onExpandedRowsChange | on expanded change | Function | |
onHeaderSortable | on header sort end | Function | |
onHeaderRow | header row event listener | Function | |
onScrollEnd | scroll to bottom | Function | |
onSort | on sort | Function | |
onRow | row events listener | Function | |
refreshEnable | use scroll end | Boolean | true |
rowClassName | row className | Function | () => '' |
rowHeight | default row height | Number | 30 |
scrollEndPosition | scroll to bottom px to refresh | Number | 60 |
scrollSize | set scroll default size | Object | {x: 8, y: 8} |
showHeader | show header | Boolean | true |
sortMulti | multi sort enable | Boolean | false |
style | table style | Object | {} |
useScrollY | use y Scroll | Boolean | true |
rowSelection | Row selection, config | Object | null |
props | describe | type | default value |
---|---|---|---|
align | alignment | String(left or center or right ) | left |
className | set className | Stringor Function(column , record , index ):String | |
children | child columns | Object:Column | |
dataIndex | data key,use a.b.c | String | - |
fixed | fixed column | String(left or right ) | |
key | unique identifier (can ignore) | String | - |
onCell | custom cell style | Function(column, record):Object | |
onHeaderCell | custom header cell style | Function(column):Object | |
order | default order | String(desc or asc ) | |
render | render cell | Function(text, record, index) {} | - |
sortEnable | sort enable | Boolean | |
title | header cell text | String or ReactNode | |
width | width | String or Number | - |
onColSpan | merge cell | Function(column, record):Number |
props | describe | type | default value |
---|---|---|---|
isFixed | fixed row | true or String(top or bottom ) | - |
props | describe | type | default value |
---|---|---|---|
selectedKeys | controlled selected row keys | string[] | [] |
onSelect | callback executed when select one row | Function(record, selected, selkectedKeys) | |
type | select model, checkbox(multi-select ) or radio(radio-select ) | checkbox or radio | checkbox |
useSelectAll | select all enable | boolean | false |
show border , default false
.
set table body max height, not default.
set className.
header cell min width, default 100
.
table data.
show count, default 30
empty show content.
whether expanded when click on a row, default true
.
expanded keys.
custom expanded row.
wherther fixed header. default true
footer height, default 30
.
custom row height.
header row height. default 35
.
header sortable enabled, default false
.
default false
是否向前添加数据
expanded indent size, default 17
.
expanded on row changed.
header on sortable end.
listen on header row events.
listen on scroll bottom.
listen on sort header.
listen on row events.
scroll to bottom for refresh.
row className.
row height, default 30
.
Scroll to the bottom how many pixels from the bottom trigger the refresh.
setting scroll size, default {x: 8, y: 8}
.
show header, default true
.
sort multi, default false
.
table style.
use scroll Y.
Row selection
import Table from 'fast-table-pro';
const columns = [
{
title: '第一列',
align: 'left',
dataIndex: 'key',
sortEnable: true,
order: true,
fixed: 'left',
width: 100,
render: (text) => <span>{text}</span>,
onCell: () => ({color: '#F9C152'})
},
{
title: '第二列',
dataIndex: 'key0',
width: 100,
fixed: 'left',
sortEnable: true
},
{
title: '第三列',
dataIndex: 'key1',
width: 100,
bodyStyle: {background: '#122024', color: '#11A1FF'}
},
{
title: '第四列',
align: 'left',
dataIndex: 'key2',
width: 130
},
{
title: '第五列',
align: 'left',
dataIndex: 'key3',
width: 120
},
{
title: '第六列',
align: 'left',
fixed: 'right',
dataIndex: 'key4',
width: 100
}
];
const dataSource = [
{key: 0, key0: 'a', key1: 'b', key2: 'c', key3: 'd', key4: 'e'}
];
const otherProps = {};
ReactDOM.render(
<Table columns={columns} dataSource={dataSource} {...otherProps} />,
mountNode
);
FAQs
react table fast
The npm package fast-table-pro receives a total of 0 weekly downloads. As such, fast-table-pro popularity was classified as not popular.
We found that fast-table-pro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.