@imengyu/vue3-context-menu 1.3.7 → 1.3.9
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.
- package/lib/ContextMenuItem.vue.d.ts +4 -4
- package/lib/ContextMenuUtils.d.ts +3 -3
- package/lib/MenuBar.d.ts +9 -1
- package/lib/demo.html +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/vue3-context-menu.common.js +5134 -0
- package/lib/vue3-context-menu.common.js.map +1 -0
- package/lib/vue3-context-menu.css +1 -1
- package/lib/vue3-context-menu.es.js +516 -505
- package/lib/vue3-context-menu.es.js.map +1 -1
- package/lib/vue3-context-menu.umd.js +1 -1
- package/lib/vue3-context-menu.umd.js.map +1 -1
- package/lib/vue3-context-menu.umd.min.js +2 -0
- package/lib/vue3-context-menu.umd.min.js.map +1 -0
- package/package.json +1 -1
|
@@ -34,14 +34,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
34
|
* Menu label
|
|
35
35
|
*/
|
|
36
36
|
label: {
|
|
37
|
-
type: (
|
|
37
|
+
type: (FunctionConstructor | StringConstructor | ObjectConstructor)[];
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Menu icon (for icon class)
|
|
42
42
|
*/
|
|
43
43
|
icon: {
|
|
44
|
-
type: (
|
|
44
|
+
type: (FunctionConstructor | StringConstructor | ObjectConstructor)[];
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
@@ -166,14 +166,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
166
166
|
* Menu label
|
|
167
167
|
*/
|
|
168
168
|
label: {
|
|
169
|
-
type: (
|
|
169
|
+
type: (FunctionConstructor | StringConstructor | ObjectConstructor)[];
|
|
170
170
|
default: string;
|
|
171
171
|
};
|
|
172
172
|
/**
|
|
173
173
|
* Menu icon (for icon class)
|
|
174
174
|
*/
|
|
175
175
|
icon: {
|
|
176
|
-
type: (
|
|
176
|
+
type: (FunctionConstructor | StringConstructor | ObjectConstructor)[];
|
|
177
177
|
default: string;
|
|
178
178
|
};
|
|
179
179
|
/**
|
|
@@ -67,7 +67,7 @@ export declare const VNodeRender: import("vue").DefineComponent<{
|
|
|
67
67
|
* @default null
|
|
68
68
|
*/
|
|
69
69
|
data: {
|
|
70
|
-
type:
|
|
70
|
+
type: null;
|
|
71
71
|
default: null;
|
|
72
72
|
};
|
|
73
73
|
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -84,9 +84,9 @@ export declare const VNodeRender: import("vue").DefineComponent<{
|
|
|
84
84
|
* @default null
|
|
85
85
|
*/
|
|
86
86
|
data: {
|
|
87
|
-
type:
|
|
87
|
+
type: null;
|
|
88
88
|
default: null;
|
|
89
89
|
};
|
|
90
90
|
}>>, {
|
|
91
|
-
data:
|
|
91
|
+
data: any;
|
|
92
92
|
}, {}>;
|
package/lib/MenuBar.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import type { MenuOptions } from "./ContextMenuDefine";
|
|
1
|
+
import type { MenuOptions, MenuPopDirection } from "./ContextMenuDefine";
|
|
2
2
|
export interface MenuBarOptions extends Omit<MenuOptions, 'x' | 'y' | 'getContainer'> {
|
|
3
3
|
/**
|
|
4
4
|
* Set whether the current menu bar is collapsed, default is false.
|
|
5
5
|
*/
|
|
6
6
|
mini?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Set the mian menu pop-up direction relative to coordinates. (With collapsed state)
|
|
9
|
+
*
|
|
10
|
+
* Default is `'bl'`
|
|
11
|
+
*
|
|
12
|
+
* @default 'bl'
|
|
13
|
+
*/
|
|
14
|
+
barPopDirection?: MenuPopDirection;
|
|
7
15
|
}
|
package/lib/demo.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>vue3-context-menu demo</title><script src="./vue3-context-menu.umd.js"></script><link rel="stylesheet" href="./vue3-context-menu.css"><script>console.log(vue3-context-menu)</script>
|
package/lib/index.d.ts
CHANGED