@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.
- package/README.CN.md +3 -1
- package/README.md +3 -1
- package/index.d.ts +1 -15
- package/lib/ContextMenu.vue.d.ts +47 -47
- package/lib/ContextMenuDefine.d.ts +380 -365
- package/lib/ContextMenuGroup.vue.d.ts +276 -276
- package/lib/ContextMenuIconCheck.vue.d.ts +2 -2
- package/lib/ContextMenuIconRight.vue.d.ts +2 -2
- package/lib/ContextMenuInstance.d.ts +22 -21
- package/lib/ContextMenuItem.vue.d.ts +306 -306
- package/lib/ContextMenuMutex.d.ts +7 -7
- package/lib/ContextMenuSeparator.vue.d.ts +6 -6
- package/lib/ContextMenuUtils.d.ts +64 -64
- package/lib/ContextSubMenu.vue.d.ts +169 -166
- package/lib/ContextSubMenuWrapper.vue.d.ts +77 -77
- package/lib/MenuBar.d.ts +7 -7
- package/lib/MenuBar.vue.d.ts +33 -3921
- package/lib/MenuBarIconMenu.vue.d.ts +2 -2
- package/lib/index.d.ts +9 -0
- package/lib/vite.config.d.ts +2 -0
- package/lib/vue3-context-menu.css +1 -1
- package/lib/vue3-context-menu.es.js +5994 -0
- package/lib/vue3-context-menu.es.js.map +1 -0
- package/lib/vue3-context-menu.umd.js +9 -5153
- package/lib/vue3-context-menu.umd.js.map +1 -1
- package/package.json +54 -67
- package/examples/App.vue +0 -188
- package/examples/css/iconfont.css +0 -43
- package/examples/css/iconfont.ttf +0 -0
- package/examples/css/iconfont.woff +0 -0
- package/examples/css/iconfont.woff2 +0 -0
- package/examples/index.html +0 -21
- package/examples/main.js +0 -11
- package/examples/router/index.ts +0 -53
- package/examples/shims-vue.d.ts +0 -6
- package/examples/single-test.html +0 -146
- package/examples/views/BasicComponent.vue +0 -126
- package/examples/views/BasicCustomize.vue +0 -254
- package/examples/views/BasicUseage.vue +0 -492
- package/examples/views/ChangeContainer.vue +0 -252
- package/examples/views/ComponentCustomize.vue +0 -190
- package/examples/views/MenuBar.vue +0 -116
- package/examples/views/Theme.vue +0 -133
- package/lib/demo.html +0 -1
- package/lib/vue3-context-menu.common.js +0 -5134
- package/lib/vue3-context-menu.common.js.map +0 -1
- package/lib/vue3-context-menu.umd.min.js +0 -2
- package/lib/vue3-context-menu.umd.min.js.map +0 -1
- package/src/ContextMenu.scss +0 -504
- package/src/ContextMenu.vue +0 -68
- package/src/ContextMenuDefine.ts +0 -369
- package/src/ContextMenuGroup.vue +0 -163
- package/src/ContextMenuIconCheck.vue +0 -5
- package/src/ContextMenuIconRight.vue +0 -5
- package/src/ContextMenuInstance.ts +0 -67
- package/src/ContextMenuItem.vue +0 -391
- package/src/ContextMenuMutex.ts +0 -22
- package/src/ContextMenuSeparator.vue +0 -27
- package/src/ContextMenuUtils.ts +0 -123
- package/src/ContextSubMenu.vue +0 -523
- package/src/ContextSubMenuWrapper.vue +0 -262
- package/src/MenuBar.scss +0 -57
- package/src/MenuBar.ts +0 -8
- package/src/MenuBar.vue +0 -191
- package/src/MenuBarIconMenu.vue +0 -3
- 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
|
/**
|
package/lib/ContextMenu.vue.d.ts
CHANGED
|
@@ -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;
|