Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
table-render
Advanced tools
易用且轻量的中后台列表解决方案,常用于搜索列表页快速生成
https://xrender.fun/table-render
table-render 依赖 ant design,单独使用不要忘记安装~
npm i table-render --save
/**
* transform: true
* defaultShowCode: true
* background: 'rgb(245,245,245)'
*/
import React from 'react';
import TableRender from 'table-render';
import { Button } from 'antd';
import { InfoCircleOutlined, PlusOutlined } from '@ant-design/icons';
const dataSource = [];
for (let i = 0; i < 6; i++) {
dataSource.push({
id: i.toString(),
title: `标题${i + 1}`,
created_at: new Date().getTime(),
});
}
const schema = {
type: 'object',
labelWidth: 70,
properties: {
title: {
title: '标题',
type: 'string'
},
created_at: {
title: '创建时间',
type: 'string',
format: 'date'
}
}
};
const columns = [
{
title: '标题',
dataIndex: 'title',
},
{
title: '创建时间',
key: 'since',
dataIndex: 'created_at',
valueType: 'date',
},
{
title: '操作',
render: (row, record) => <a onClick={() => alert(row.title)}>编辑</a>,
}
];
const Demo = () => {
const api = () => {
return {
data: dataSource,
total: dataSource.length
};
};
return (
<TableRender
search={{ schema }}
request={api}
columns={columns}
title='最简表格'
toolbarRender={
<>
<Button>查看日志</Button>
<Button>导出数据</Button>
<Button type='primary'>
<PlusOutlined />
新增
</Button>
</>
}
/>
);
}
export default Demo;
FAQs
The npm package table-render receives a total of 35 weekly downloads. As such, table-render popularity was classified as not popular.
We found that table-render demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.