New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

v-contextmenus

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-contextmenus - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

main.js

2

package.json
{
"name": "v-contextmenus",
"version": "0.1.0",
"version": "0.2.0",
"description": "Vue 右键菜单功能",

@@ -5,0 +5,0 @@ "author": "kings <530675800@qq.com>",

@@ -18,14 +18,9 @@ # VContextmenus

```javascript
import setContextmenu from 'v-contextmenus/store'
const store = new Vuex.Store({
state: {},
// 添加以下内容
// add this mutations
mutations: {
setContextmenu (state, data) {
if (Object.keys(data).length > 1) {
state.contextmenu = data
} else {
state.contextmenu.show = data.show
}
}
setContextmenu
}

@@ -32,0 +27,0 @@ })

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc