Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 1cce47d

Browse files
committed
fix(installation): testing vue-demi
1 parent 6f9fb3b commit 1cce47d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/dynamicForms.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { App } from 'vue-demi';
1+
import { App, isVue2 } from 'vue-demi';
22
import { dynamicFormsSymbol } from './useApi';
33
import DynamicForm from './components/dynamic-form/DynamicForm.vue';
44
import { FormOptions } from './core/models';
@@ -20,6 +20,15 @@ export function createDynamicForms(
2020
options,
2121
install(app: App) {
2222
const self = this;
23+
24+
if (isVue2) {
25+
// Vue 2 only
26+
console.log('IS VUEEEE 222');
27+
} else {
28+
// Vue 3 only
29+
console.log('IS VUEEEE 333');
30+
}
31+
2332
app.component('dynamic-form', DynamicForm);
2433
app.provide(dynamicFormsSymbol, self);
2534
},

0 commit comments

Comments
 (0)