
Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
vxe-table-plugin-menus
Advanced tools
该插件用于在 vxe-table 表格中提供实用的快捷菜单集
npm install xe-utils vxe-table vxe-table-plugin-menus
import Vue from 'vue'
import VXETable from 'vxe-table'
import VXETablePluginMenus from 'vxe-table-plugin-menus'
Vue.use(VXETable)
VXETable.use(VXETablePluginMenus)
code 编码 | 描述 | params 参数 |
---|---|---|
CLEAR_CELL | 清除单元格数据的值 | — |
CLEAR_ROW | 清除行数据的值 | — |
CLEAR_SELECTION_ROW | 清除选中行数据的值 | — |
CLEAR_ALL | 清除所有数据的值 | — |
REVERT_CELL | 还原单元格数据的值 | — |
REVERT_ROW | 还原行数据的值 | — |
REVERT_SELECTION_ROW | 还原选中行数据的值 | — |
REVERT_ALL | 还原所有数据的值 | — |
INSERT_ROW | 插入数据 | records |
INSERT_ACTIVED_ROW | 插入数据并激活编辑状态 | Array<records, field> |
INSERT_AT_ROW | 插入数据到指定位置并激活编辑状态 | records |
INSERT_AT_ACTIVED_ROW | 插入数据到指定位置并激活编辑状态 | Array<records, field> |
DELETE_ROW | 移除行数据 | — |
DELETE_SELECTION_ROW | 移除选中行数据 | — |
DELETE_ALL | 移除所有行数据 | — |
CLEAR_SORT | 清除排序条件 | — |
SORT_ASC | 按所选列的值升序 | — |
SORT_DESC | 按所选列的值倒序 | — |
CLEAR_FILTER | 清除选中列的筛选条件 | — |
CLEAR_ALL_FILTER | 清除所有列筛选条件 | — |
EXPORT_ROW | 导出行数据 | options |
EXPORT_SELECTION_ROW | 导出选中行数据 | options |
EXPORT_ALL | 导出所有行数据 | options |
HIDDEN_COLUMN | 隐藏列 | — |
RESET_COLUMN | 重置列可视状态 | — |
RESET_RESIZABLE | 重置列宽状态 | — |
RESET_ALL | 重置所有个性化数据 | — |
<vxe-table
border
:data.sync="tableData"
:context-menu="{body: {options: bodyMenus}}"
:edit-config="{trigger: 'click', mode: 'cell'}">
<vxe-table-column type="index" width="60"></vxe-table-column>
<vxe-table-column field="name" title="Name" :edit-render="{name: 'input'}"></vxe-table-column>
<vxe-table-column field="sex" title="sex" :edit-render="{name: 'input'}"></vxe-table-column>
<vxe-table-column field="age" title="Age" :edit-render="{name: 'input'}"></vxe-table-column>
</vxe-table>
export default {
data () {
return {
tableData: [
{
id: 100,
name: 'test1',
age: 26,
sex: '1'
}
],
bodyMenus: [
[
{
code: 'EXPORT_ALL',
name: '导出.csv'
},
{
code: 'INSERT_ACTIVED_ROW',
name: '新增'
}
]
]
}
}
}
MIT License, 2019-present, Xu Liangzhan
FAQs
基于 vxe-table 表格的扩展插件,提供实用的快捷菜单配置
The npm package vxe-table-plugin-menus receives a total of 317 weekly downloads. As such, vxe-table-plugin-menus popularity was classified as not popular.
We found that vxe-table-plugin-menus demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.