8000 feat: expose registerElement to plugins through app · 00zhengfu00/nativescript-vue@ab57fa8 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab57fa8

Browse files
committed
feat: expose registerElement to plugins through app
1 parent 9e721a5 commit ab57fa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { renderer } from "./renderer";
99

1010
import { install as modalsPlugin } from "./plugins/modals";
1111
import { install as navigationPlugin } from "./plugins/navigation";
12-
import { isKnownView } from "./registry";
12+
import { isKnownView, registerElement } from "./registry";
1313

1414
declare module "@vue/runtime-core" {
1515
interface App {
@@ -19,6 +19,7 @@ declare module "@vue/runtime-core" {
1919
isHydrate?: boolean,
2020
isSVG?: boolean
2121
): ComponentPublicInstance;
22+
registerElement: typeof registerElement;
2223
}
2324
}
2425

@@ -65,6 +66,7 @@ export const render = renderer.render;
6566
export const createApp = ((...args) => {
6667
const app = renderer.createApp(...args);
6768
const { mount } = app;
69+
app.registerElement = registerElement;
6870

6971
app.mount = (...args) => {
7072
if (!args.length) {

0 commit comments

Comments
 (0)
0