This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree 2 files changed +7
-11
lines changed
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 90
90
"vue" : " ^3.0.4" ,
91
91
"vue-select" : " 3.10.8" ,
92
92
"postcss" : " ^7.0.35" ,
93
- "tailwindcss" : " npm:@tailwindcss/postcss7-compat@^2.0.1"
93
+ "tailwindcss" : " npm:@tailwindcss/postcss7-compat@^2.0.1" ,
94
+ "autoprefixer" : " ^9.8.6"
94
95
},
95
96
"dependencies" : {
96
- "autoprefixer" : " ^9.8.6" ,
97
97
"deep-clone" : " ^3.0.3" ,
98
98
"deep-object-diff" : " ^1.1.0" ,
99
99
"vue-demi" : " ^0.5.3"
Original file line number Diff line number Diff line change 1
- import { App , isVue2 } from 'vue-demi' ;
1
+ import { App , isVue3 } from 'vue-demi' ;
2
2
import { dynamicFormsSymbol } from './useApi' ;
3
3
import DynamicForm from './components/dynamic-form/DynamicForm.vue' ;
4
4
import { FormOptions } from './core/models' ;
@@ -21,16 +21,12 @@ export function createDynamicForms(
21
21
install ( app : App ) {
22
22
const self = this ;
23
23
24
- if ( isVue2 ) {
25
- // Vue 2 only
26
- console . log ( 'IS VUEEEE 222' ) ;
24
+ app . component ( 'dynamic-form' , DynamicForm ) ;
25
+ if ( isVue3 ) {
26
+ app . provide ( dynamicFormsSymbol , self ) ;
27
27
} else {
28
- // Vue 3 only
29
- console . log ( 'IS VUEEEE 333' ) ;
28
+ app . config . globalProperties . $vdf = self ;
30
29
}
31
-
32
- app . component ( 'dynamic-form' , DynamicForm ) ;
33
- app . provide ( dynamicFormsSymbol , self ) ;
34
30
} ,
35
31
} ;
36
32
You can’t perform that action at this time.
0 commit comments