@g1cloud/open-bluesea-core 1.0.0-alpha.6 → 1.0.0-alpha.7
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/dist/index.d.ts
CHANGED
|
@@ -694,6 +694,7 @@ export declare class BSContextMenuPlugin {
|
|
|
694
694
|
options: Ref<ContextMenuOptions | undefined, ContextMenuOptions | undefined>;
|
|
695
695
|
showContextMenu(event: MousePosition, menus: MenuItem[], options?: ContextMenuOptions): void;
|
|
696
696
|
hideContextMenu(): void;
|
|
697
|
+
install(app: App): void;
|
|
697
698
|
private markComponentRaw;
|
|
698
699
|
}
|
|
699
700
|
|
|
@@ -19,9 +19,9 @@ class BSContextMenuPlugin {
|
|
|
19
19
|
this.position.value = void 0;
|
|
20
20
|
this.options.value = void 0;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
install(app) {
|
|
23
|
+
app.provide(ContextMenuPluginKey, this);
|
|
24
|
+
}
|
|
25
25
|
markComponentRaw(menus) {
|
|
26
26
|
menus.forEach((menu) => {
|
|
27
27
|
if (menu.component) menu.component = markRaw(menu.component);
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
this.position.value = void 0;
|
|
22
22
|
this.options.value = void 0;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
install(app) {
|
|
25
|
+
app.provide(ContextMenuPluginKey, this);
|
|
26
|
+
}
|
|
27
27
|
markComponentRaw(menus) {
|
|
28
28
|
menus.forEach((menu) => {
|
|
29
29
|
if (menu.component) menu.component = vue.markRaw(menu.component);
|