
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
dynamic-table-render
Advanced tools
=================
npm i dynamic-table-render
import dynamicTableRender from 'dynamic-table-render'
import ElementUI from 'element-ui'
Vue.use(ElementUI)
Vue.use(dynamicTableRender)
columns: 表头配置
data:数据列
showPagination: 是否展示分页
pagination: 同el-pagination配置
其他参数配置同 el-table配置
data: [
{
date: "2016-05-02",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
},
{
date: "2016-05-04",
name: "王小虎",
address: "上海市普陀区金沙江路 1517 弄",
},
{
date: "2016-05-01",
name: "王小虎",
address: "上海市普陀区金沙江路 1519 弄",
},
{
date: "2016-05-03",
name: "王小虎",
address: "上海市普陀区金沙江路 1516 弄",
},
],
pagination: {
total: 10,
page: 1,
size: 5,
layout: "total, sizes, prev, pager, next, jumper",
},
columns: [
{
prop: "index",
label: "序号",
align: "center",
width: "60",
formatter: (row, column, cellValue, index) => {
const _this = this;
return (
(_this.pagination.page - 1) * _this.pagination.size + index + 1
);
},
},
{
prop: "date",
label: "日期",
width: "120",
align: "center",
},
{
prop: "name",
label: "名字",
width: "160",
align: "center",
},
{
prop: "address",
label: "地址",
align: "center",
},
{
label: "操作",
align: "center",
fixed: "right",
width: "220",
render: (h, { row }) => {
const props = {
type: "primary",
size: "mini",
};
return h("div", [
h(
"el-button",
{
props: props,
on: {
click: () => {
console.log(row);
},
},
},
"编辑"
),
h(
"el-button",
{
props: props,
},
"删除"
),
]);
},
},
],
FAQs
基于elementui动态表格支持分页
The npm package dynamic-table-render receives a total of 0 weekly downloads. As such, dynamic-table-render popularity was classified as not popular.
We found that dynamic-table-render 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 researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.