@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.
@@ -34,14 +34,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
34
34
  * Menu label
35
35
  */
36
36
  label: {
37
- type: (ObjectConstructor | FunctionConstructor | StringConstructor)[];
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: (ObjectConstructor | FunctionConstructor | StringConstructor)[];
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: (ObjectConstructor | FunctionConstructor | StringConstructor)[];
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: (ObjectConstructor | FunctionConstructor | StringConstructor)[];
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: ObjectConstructor;
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: ObjectConstructor;
87
+ type: null;
88
88
  default: null;
89
89
  };
90
90
  }>>, {
91
- data: Record<string, any>;
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
@@ -1,5 +1,6 @@
1
1
  import Inst from './ContextMenuInstance';
2
2
  export * from './ContextMenuInstance';
3
+ export * from './MenuBar';
3
4
  import MenuBar from './MenuBar.vue';
4
5
  import ContextMenu from './ContextMenu.vue';
5
6
  import ContextMenuItem from './ContextMenuItem.vue';