Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
fast-table
Advanced tools
React表格组件,支持多数据首次快速渲染。
https://paul-long.github.io/react-components/
npm install fast-table --save-dev
props | describe | type | default value |
---|---|---|---|
bordered | show bordered | Boolean | false |
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 |
indentSize | expanded indent size | Number | 17 |
onExpandedRowsChange | on expanded change | Function | |
onScrollEnd | scroll to bottom | 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 |
showHeader | show header | Boolean | true |
sortMulti | multi sort enable | Boolean | false |
style | table style | Object | {} |
useScrollY | use y Scroll | Boolean | true |
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 | cell style | Function(column, record):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 | - |
DataSource Props:
props | describe | type | default value |
---|---|---|---|
isFixed | fixed row | true or String(top or bottom ) | - |
import Table from 'fast-table';
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 receives a total of 4 weekly downloads. As such, fast-table popularity was classified as not popular.
We found that fast-table 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.