This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,9 @@ export default {
201
201
name: ' app' ,
202
202
data,
203
203
methods,
204
+ mounted () {
205
+ console .log (this .$formUtils );
206
+ },
204
207
};
205
208
</script >
206
209
<style lang="scss">
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Vue from 'vue';
2
2
import App from './App.vue' ;
3
3
import './styles/main.scss' ;
4
4
5
- import VueDynamicForms from '../../src /index' ; // Dev
5
+ import VueDynamicForms from '@ /index' ; // Dev
6
6
// import VueDynamicForms from '@asigloo/vue-dynamic-forms' // Prod
7
7
8
8
Vue . config . productionTip = false ;
Original file line number Diff line number Diff line change 1
1
import DynamicForm from './components/dynamic-form/DynamicForm.vue' ;
2
2
import DynamicInput from './components/dynamic-input/DynamicInput.vue' ;
3
- export * from './core/utils' ;
3
+ import utils from './core/utils' ;
4
+
4
5
const version = process . env . VERSION || require ( '../package.json' ) . version ;
5
6
6
7
export let _Vue ;
@@ -11,6 +12,8 @@ export function install(Vue) {
11
12
12
13
_Vue = Vue ;
13
14
15
+ Vue . prototype . $formUtils = utils ;
16
+
14
17
Vue . component ( 'dynamic-form' , DynamicForm ) ;
15
18
Vue . component ( 'dynamic-input' , DynamicInput ) ;
16
19
}
@@ -25,6 +28,8 @@ if (typeof window !== 'undefined' && window.Vue) {
25
28
window . Vue . use ( AsDynamicForms ) ;
26
29
}
27
30
31
+ export * from './core/utils' ;
32
+
28
33
export { DynamicForm , DynamicInput } ;
29
34
30
35
export default AsDynamicForms ;
You can’t perform that action at this time.
0 commit comments