
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
一个基于 vxe-table 二次封装的表格组件,适用于 vue2.0
npm install vxe-table@3.6.13 vxe-table-plugin-element@3.0.7 element-ui@2.5.14 vx-table
// 引入 element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
// 引入 vxe-table
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
Vue.use(VXETable)
// 引入 vxe-table 插件 兼容 编辑模式下支持 element-ui 组件
import VXETablePluginElement from 'vxe-table-plugin-element'
import 'vxe-table-plugin-element/dist/style.css'
VXETable.use(VXETablePluginElement)
// 引入 vx-table 组件
import VxTable from 'vx-table'
import 'vx-table/dist/vxTable.css'
Vue.use(VxTable)
<template>
<div>
<vx-table :data="data" :columns="columns"></vx-table>
</div>
</template>
<script>
export default {
name: 'App',
components: { VxTable },
data() {
return {
data: [{ id: 1, name: 'JC', age: 18, amount: 8568.87656 }],
columns: [
{
label: '姓名',
prop: 'name'
},
{
label: '年龄',
prop: 'age'
},
{
label: '余额',
prop: 'amount',
format: { type: 'number', digits: 2, prefix: '¥' }
}
],
}
}
}
</script>
// 安装依赖
npm install
// 运行本地调试
npm run serve
// 编译打包,生成 dist 编译目录
npm run lib
MIT © 2023-present, Jason Chen
FAQs
一个基于 vxe-table 二次封装的组件,适用于 vue2.0
We found that vx-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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.