You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vfg-field-object can be used as a module in both CommonJS and ES modular environments.
When in non-modular environment, vfg-field-object will register all the components to vue by itself.
ES6
//// You can register a component manually//import{FieldObject}from'vfg-field-object';
export default{
...
components: {'field-object': FieldObject},
...
};//// or register the whole module with vue//importModuleLibraryfrom'vfg-field-object';// Install this libraryVue.use(ModuleLibrary);
CommonJS
//// You can register a component manually//varVue=require('vue');varModuleLibrary=require('vfg-field-object');varYourComponent=Vue.extend({
...
components: {'field-object': ModuleLibrary.FieldObject},
...
});//// or register the whole module with vue//varVue=require('vue');varModuleLibrary=require('vfg-field-object');// Install this libraryVue.use(ModuleLibrary);
Browser
<scriptsrc="path/to/vue/vue.min.js"></script><scriptsrc="path/to/vfg-field-object/dist/vfg-field-object.min.js"></script><!-- Components are registered globally -->
After that, you can use it with Vue Form Generator: