This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 9090 "vue" : " ^3.0.4" ,
9191 "vue-select" : " 3.10.8" ,
9292 "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"
9495 },
9596 "dependencies" : {
96- "autoprefixer" : " ^9.8.6" ,
9797 "deep-clone" : " ^3.0.3" ,
9898 "deep-object-diff" : " ^1.1.0" ,
9999 "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' ;
22import { dynamicFormsSymbol } from './useApi' ;
33import DynamicForm from './components/dynamic-form/DynamicForm.vue' ;
44import { FormOptions } from './core/models' ;
@@ -21,16 +21,12 @@ export function createDynamicForms(
2121 install ( app : App ) {
2222 const self = this ;
2323
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 ) ;
2727 } else {
28- // Vue 3 only
29- console . log ( 'IS VUEEEE 333' ) ;
28+ app . config . globalProperties . $vdf = self ;
3029 }
31-
32- app . component ( 'dynamic-form' , DynamicForm ) ;
33- app . provide ( dynamicFormsSymbol , self ) ;
3430 } ,
3531 } ;
3632
You can’t perform that action at this time.
0 commit comments