@imengyu/vue3-context-menu 1.3.3 → 1.3.4

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 (66) hide show
  1. package/README.CN.md +3 -1
  2. package/README.md +3 -1
  3. package/index.d.ts +1 -15
  4. package/lib/ContextMenu.vue.d.ts +47 -47
  5. package/lib/ContextMenuDefine.d.ts +380 -365
  6. package/lib/ContextMenuGroup.vue.d.ts +276 -276
  7. package/lib/ContextMenuIconCheck.vue.d.ts +2 -2
  8. package/lib/ContextMenuIconRight.vue.d.ts +2 -2
  9. package/lib/ContextMenuInstance.d.ts +22 -21
  10. package/lib/ContextMenuItem.vue.d.ts +306 -306
  11. package/lib/ContextMenuMutex.d.ts +7 -7
  12. package/lib/ContextMenuSeparator.vue.d.ts +6 -6
  13. package/lib/ContextMenuUtils.d.ts +64 -64
  14. package/lib/ContextSubMenu.vue.d.ts +169 -166
  15. package/lib/ContextSubMenuWrapper.vue.d.ts +77 -77
  16. package/lib/MenuBar.d.ts +7 -7
  17. package/lib/MenuBar.vue.d.ts +33 -3921
  18. package/lib/MenuBarIconMenu.vue.d.ts +2 -2
  19. package/lib/index.d.ts +9 -0
  20. package/lib/vite.config.d.ts +2 -0
  21. package/lib/vue3-context-menu.css +1 -1
  22. package/lib/vue3-context-menu.es.js +5994 -0
  23. package/lib/vue3-context-menu.es.js.map +1 -0
  24. package/lib/vue3-context-menu.umd.js +9 -5153
  25. package/lib/vue3-context-menu.umd.js.map +1 -1
  26. package/package.json +54 -67
  27. package/examples/App.vue +0 -188
  28. package/examples/css/iconfont.css +0 -43
  29. package/examples/css/iconfont.ttf +0 -0
  30. package/examples/css/iconfont.woff +0 -0
  31. package/examples/css/iconfont.woff2 +0 -0
  32. package/examples/index.html +0 -21
  33. package/examples/main.js +0 -11
  34. package/examples/router/index.ts +0 -53
  35. package/examples/shims-vue.d.ts +0 -6
  36. package/examples/single-test.html +0 -146
  37. package/examples/views/BasicComponent.vue +0 -126
  38. package/examples/views/BasicCustomize.vue +0 -254
  39. package/examples/views/BasicUseage.vue +0 -492
  40. package/examples/views/ChangeContainer.vue +0 -252
  41. package/examples/views/ComponentCustomize.vue +0 -190
  42. package/examples/views/MenuBar.vue +0 -116
  43. package/examples/views/Theme.vue +0 -133
  44. package/lib/demo.html +0 -1
  45. package/lib/vue3-context-menu.common.js +0 -5134
  46. package/lib/vue3-context-menu.common.js.map +0 -1
  47. package/lib/vue3-context-menu.umd.min.js +0 -2
  48. package/lib/vue3-context-menu.umd.min.js.map +0 -1
  49. package/src/ContextMenu.scss +0 -504
  50. package/src/ContextMenu.vue +0 -68
  51. package/src/ContextMenuDefine.ts +0 -369
  52. package/src/ContextMenuGroup.vue +0 -163
  53. package/src/ContextMenuIconCheck.vue +0 -5
  54. package/src/ContextMenuIconRight.vue +0 -5
  55. package/src/ContextMenuInstance.ts +0 -67
  56. package/src/ContextMenuItem.vue +0 -391
  57. package/src/ContextMenuMutex.ts +0 -22
  58. package/src/ContextMenuSeparator.vue +0 -27
  59. package/src/ContextMenuUtils.ts +0 -123
  60. package/src/ContextSubMenu.vue +0 -523
  61. package/src/ContextSubMenuWrapper.vue +0 -262
  62. package/src/MenuBar.scss +0 -57
  63. package/src/MenuBar.ts +0 -8
  64. package/src/MenuBar.vue +0 -191
  65. package/src/MenuBarIconMenu.vue +0 -3
  66. package/src/vue-shim.d.ts +0 -10
package/README.CN.md CHANGED
@@ -75,7 +75,9 @@ onContextMenu(e : MouseEvent) {
75
75
  git clone git@github.com:imengyu/vue3-context-menu.git
76
76
  cd vue3-context-menu
77
77
  npm install
78
- npm serve
78
+ npm run dev # Development serve project
79
+ npm run build-demo # Build example project
80
+ npm run build-lib # Build library project
79
81
  ```
80
82
 
81
83
  ## 已有主题
package/README.md CHANGED
@@ -116,7 +116,9 @@ methods: {
116
116
  git clone git@github.com:imengyu/vue3-context-menu.git
117
117
  cd vue3-context-menu
118
118
  npm install
119
- npm serve
119
+ npm run dev # Development serve project
120
+ npm run build-demo # Build example project
121
+ npm run build-lib # Build library project
120
122
  ```
121
123
 
122
124
  ## Built-in themes
package/index.d.ts CHANGED
@@ -4,25 +4,11 @@ import ContextMenuGlobal from './lib/ContextMenuInstance';
4
4
  export default ContextMenuGlobal;
5
5
 
6
6
  export * from './lib/ContextMenuDefine';
7
- import MenuBar from './lib/MenuBar.vue';
8
- import { MenuBarOptions } from './lib/MenuBar';
9
- import ContextMenu from './lib/ContextMenu.vue';
10
- import ContextMenuItem from './lib/ContextMenuItem.vue';
11
- import ContextMenuSeparator from './lib/ContextMenuSeparator.vue';
12
- import ContextMenuGroup from './lib/ContextMenuGroup.vue';
13
7
 
14
- export {
15
- ContextMenu,
16
- ContextMenuItem,
17
- ContextMenuSeparator,
18
- ContextMenuGroup,
19
- MenuBar,
20
- MenuBarOptions,
21
- }
8
+ export * from './lib';
22
9
 
23
10
  declare module 'vue3-context-menu' {
24
11
  }
25
-
26
12
  declare module '@vue/runtime-core' {
27
13
  export interface ComponentCustomProperties {
28
14
  /**
@@ -1,47 +1,47 @@
1
- import { PropType, VNode } from 'vue';
2
- import { MenuOptions } from './ContextMenuDefine';
3
- export type GlobalHasSlot = (name: string) => boolean;
4
- export type GlobalRenderSlot = (name: string, params: Record<string, unknown>) => VNode;
5
- /**
6
- * Context menu component
7
- */
8
- declare const _default: import("vue").DefineComponent<{
9
- /**
10
- * Menu options
11
- */
12
- options: {
13
- type: PropType<MenuOptions>;
14
- default: null;
15
- };
16
- /**
17
- * Show menu?
18
- */
19
- show: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- }, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
- [key: string]: any;
25
- }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "close")[], "update:show" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
- /**
27
- * Menu options
28
- */
29
- options: {
30
- type: PropType<MenuOptions>;
31
- default: null;
32
- };
33
- /**
34
- * Show menu?
35
- */
36
- show: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- }>> & {
41
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
42
- onClose?: ((...args: any[]) => any) | undefined;
43
- }, {
44
- options: MenuOptions;
45
- show: boolean;
46
- }>;
47
- export default _default;
1
+ import type { PropType, VNode } from 'vue';
2
+ import type { MenuOptions } from './ContextMenuDefine';
3
+ export type GlobalHasSlot = (name: string) => boolean;
4
+ export type GlobalRenderSlot = (name: string, params: Record<string, unknown>) => VNode;
5
+ /**
6
+ * Context menu component
7
+ */
8
+ declare const _default: import("vue").DefineComponent<{
9
+ /**
10
+ * Menu options
11
+ */
12
+ options: {
13
+ type: PropType<MenuOptions>;
14
+ default: null;
15
+ };
16
+ /**
17
+ * Show menu?
18
+ */
19
+ show: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
+ [key: string]: any;
25
+ }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "close")[], "update:show" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ /**
27
+ * Menu options
28
+ */
29
+ options: {
30
+ type: PropType<MenuOptions>;
31
+ default: null;
32
+ };
33
+ /**
34
+ * Show menu?
35
+ */
36
+ show: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ }>> & {
41
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
42
+ onClose?: ((...args: any[]) => any) | undefined;
43
+ }, {
44
+ options: MenuOptions;
45
+ show: boolean;
46
+ }, {}>;
47
+ export default _default;