@imengyu/vue3-context-menu 1.3.9 → 1.4.0
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 +19 -13
- package/README.md +19 -13
- package/lib/ContextMenuItem.vue.d.ts +3 -3
- package/lib/ContextSubMenu.vue.d.ts +10 -11
- package/lib/vue3-context-menu.es.js +508 -506
- 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/package.json +1 -1
package/README.CN.md
CHANGED
|
@@ -65,20 +65,9 @@ onContextMenu(e : MouseEvent) {
|
|
|
65
65
|
|
|
66
66
|
## 文档
|
|
67
67
|
|
|
68
|
-
[查看文档](https://imengyu.top/
|
|
68
|
+
[查看文档](https://docs.imengyu.top/vue3-context-menu-docs/)
|
|
69
69
|
|
|
70
|
-
[查看在线演示](https://imengyu.top/
|
|
71
|
-
|
|
72
|
-
## 开发
|
|
73
|
-
|
|
74
|
-
```shell
|
|
75
|
-
git clone git@github.com:imengyu/vue3-context-menu.git
|
|
76
|
-
cd vue3-context-menu
|
|
77
|
-
npm install
|
|
78
|
-
npm run dev # Development serve project
|
|
79
|
-
npm run build-demo # Build example project
|
|
80
|
-
npm run build-lib # Build library project
|
|
81
|
-
```
|
|
70
|
+
[查看在线演示](https://docs.imengyu.top/vue3-context-menu-demo/)
|
|
82
71
|
|
|
83
72
|
## 已有主题
|
|
84
73
|
|
|
@@ -93,6 +82,23 @@ npm run build-lib # Build library project
|
|
|
93
82
|
|`mac`|Mac like theme||
|
|
94
83
|
|`mac dark`|Mac like theme with dark||
|
|
95
84
|
|
|
85
|
+
## 广告: 作者其他的有用项目
|
|
86
|
+
|
|
87
|
+
* [vue-code-layout A Vue editor layout component that like VSCode](https://github.com/imengyu/vue-code-layout)
|
|
88
|
+
* [vue-dock-layout A Vue editor layout component that like Visual Studio](https://github.com/imengyu/vue-dock-layout)
|
|
89
|
+
* [vue-dynamic-form A data driven form component for vue3](https://github.com/imengyu/vue-dynamic-form)
|
|
90
|
+
|
|
91
|
+
## 开发
|
|
92
|
+
|
|
93
|
+
```shell
|
|
94
|
+
git clone git@github.com:imengyu/vue3-context-menu.git
|
|
95
|
+
cd vue3-context-menu
|
|
96
|
+
npm install
|
|
97
|
+
npm run dev # Development serve project
|
|
98
|
+
npm run build-demo # Build example project
|
|
99
|
+
npm run build-lib # Build library project
|
|
100
|
+
```
|
|
101
|
+
|
|
96
102
|
## License
|
|
97
103
|
|
|
98
104
|
[MIT](./LICENSE)
|
package/README.md
CHANGED
|
@@ -18,9 +18,9 @@ English | [简体中文](https://github.com/imengyu/vue3-context-menu/blob/main/
|
|
|
18
18
|
|
|
19
19
|
## Documentation
|
|
20
20
|
|
|
21
|
-
[View Documentation](https://imengyu.top/
|
|
21
|
+
[View Documentation](https://docs.imengyu.top/vue3-context-menu-docs/en/)
|
|
22
22
|
|
|
23
|
-
[Click here View online Demo](https://imengyu.top/
|
|
23
|
+
[Click here View online Demo](https://docs.imengyu.top/vue3-context-menu-demo/)
|
|
24
24
|
|
|
25
25
|
### Usage
|
|
26
26
|
|
|
@@ -110,17 +110,6 @@ methods: {
|
|
|
110
110
|
}
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
## Development
|
|
114
|
-
|
|
115
|
-
```shell
|
|
116
|
-
git clone git@github.com:imengyu/vue3-context-menu.git
|
|
117
|
-
cd vue3-context-menu
|
|
118
|
-
npm install
|
|
119
|
-
npm run dev # Development serve project
|
|
120
|
-
npm run build-demo # Build example project
|
|
121
|
-
npm run build-lib # Build library project
|
|
122
|
-
```
|
|
123
|
-
|
|
124
113
|
## Built-in themes
|
|
125
114
|
|
|
126
115
|
|theme|explain|example image|
|
|
@@ -134,6 +123,23 @@ npm run build-lib # Build library project
|
|
|
134
123
|
|`mac`|Mac like theme||
|
|
135
124
|
|`mac dark`|Mac like theme with dark||
|
|
136
125
|
|
|
126
|
+
## AD: Author's other project
|
|
127
|
+
|
|
128
|
+
* [vue-code-layout A Vue editor layout component that like VSCode](https://github.com/imengyu/vue-code-layout)
|
|
129
|
+
* [vue-dock-layout A Vue editor layout component that like Visual Studio](https://github.com/imengyu/vue-dock-layout)
|
|
130
|
+
* [vue-dynamic-form A data driven form component for vue3](https://github.com/imengyu/vue-dynamic-form)
|
|
131
|
+
|
|
132
|
+
## Development
|
|
133
|
+
|
|
134
|
+
```shell
|
|
135
|
+
git clone git@github.com:imengyu/vue3-context-menu.git
|
|
136
|
+
cd vue3-context-menu
|
|
137
|
+
npm install
|
|
138
|
+
npm run dev # Development serve project
|
|
139
|
+
npm run build-demo # Build example project
|
|
140
|
+
npm run build-lib # Build library project
|
|
141
|
+
```
|
|
142
|
+
|
|
137
143
|
## License
|
|
138
144
|
|
|
139
145
|
[MIT](./LICENSE)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropType, type SVGAttributes } from 'vue';
|
|
1
|
+
import { type PropType, type SVGAttributes, type Ref } from 'vue';
|
|
2
2
|
import type { MenuItem } from './ContextMenuDefine';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
/**
|
|
@@ -126,8 +126,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
126
126
|
default: undefined;
|
|
127
127
|
};
|
|
128
128
|
}, {
|
|
129
|
-
showSubMenu:
|
|
130
|
-
keyBoardFocusMenu:
|
|
129
|
+
showSubMenu: Ref<boolean>;
|
|
130
|
+
keyBoardFocusMenu: Ref<boolean>;
|
|
131
131
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
132
132
|
click: (...args: any[]) => void;
|
|
133
133
|
subMenuOpen: (...args: any[]) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type Ref } from 'vue';
|
|
2
2
|
import type { MenuOptions, MenuItem, MenuPopDirection } from './ContextMenuDefine';
|
|
3
3
|
import type { GlobalHasSlot, GlobalRenderSlot } from './ContextMenu.vue';
|
|
4
4
|
import { solveNumberOrStringSize } from './ContextMenuUtils';
|
|
@@ -91,9 +91,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
default: string;
|
|
92
92
|
};
|
|
93
93
|
}, {
|
|
94
|
-
menu:
|
|
95
|
-
scroll:
|
|
96
|
-
options: MenuOptions
|
|
94
|
+
menu: Ref<HTMLElement | undefined>;
|
|
95
|
+
scroll: Ref<HTMLElement | undefined>;
|
|
96
|
+
options: Ref<MenuOptions>;
|
|
97
97
|
zIndex: number;
|
|
98
98
|
constOptions: {
|
|
99
99
|
defaultDirection: string;
|
|
@@ -105,18 +105,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
105
|
y: number;
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
-
scrollValue:
|
|
109
|
-
upScrollButton:
|
|
110
|
-
overflow:
|
|
111
|
-
position:
|
|
108
|
+
scrollValue: Ref<number>;
|
|
109
|
+
upScrollButton: Ref<HTMLElement | undefined>;
|
|
110
|
+
overflow: Ref<boolean>;
|
|
111
|
+
position: Ref<{
|
|
112
112
|
x: number;
|
|
113
113
|
y: number;
|
|
114
114
|
}>;
|
|
115
|
-
scrollHeight:
|
|
116
|
-
maxHeight:
|
|
115
|
+
scrollHeight: Ref<number>;
|
|
116
|
+
maxHeight: Ref<number>;
|
|
117
117
|
globalHasSlot: GlobalHasSlot;
|
|
118
118
|
globalRenderSlot: GlobalRenderSlot;
|
|
119
|
-
globalTheme: string;
|
|
120
119
|
onScroll: (down: boolean) => void;
|
|
121
120
|
onSubMenuBodyClick: () => void;
|
|
122
121
|
onMouseWhell: (e: WheelEvent) => void;
|