vue3-context-menu-plus 2.0.5 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: eggYolkegg
3
3
  * @Date: 2025-12-11 15:41:57
4
4
  * @LastEditors: eggYolkegg
5
- * @LastEditTime: 2025-12-19 08:11:16
5
+ * @LastEditTime: 2025-12-19 08:15:34
6
6
  * @Description:
7
7
  -->
8
8
 
@@ -16,6 +16,8 @@
16
16
  🔧 自定义菜单点击回调,携带完整上下文信息
17
17
  ⚡ 指令式调用,接入成本低
18
18
 
19
+ git:https://github.com/eggyolkegg/vue3-context-menu-plus
20
+
19
21
  ## 安装
20
22
 
21
23
  ```bash
@@ -96,7 +98,7 @@ const customMenus = ref([
96
98
  { id: 11, divider: true }, // 分隔线
97
99
  { id: 12, label: "刷新" },
98
100
  ]);
99
- const handleClick = (item: any, data: any) => {
101
+ const handleClick = (item:any, event:any, context:any) => {
100
102
  console.log('点击的菜单项:', item)
101
103
  console.log('原生事件对象:', event)
102
104
  console.log('上下文信息:', context)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "vue3-context-menu-plus",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "A Vue 3 context menu component that shows different menus based on different components",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.esm.js",