A source code field for vue-form-generator
npm install vfg-field-sourcecode!Rollup badge
!Jest
!Vue
!Storybook
!Commitizen

!Npm badge

> A source code field for vue-form-generator
```
npm install vfg-field-sourcecode
`
vfg-field-sourcecode can be used as a module in both CommonJS and ES modular environments.When in non-modular environment, vfg-field-sourcecode will register all the components to vue by itself.
$3
`js
//
// You can register a component manually
//
import { FieldSourcecode } from 'vfg-field-sourcecode';export default {
...
components: {
'field-sourcecode': FieldSourcecode
},
...
};
//
// or register the whole module with vue
//
import ModuleLibrary from 'vfg-field-sourcecode';
// Install this library
Vue.use(ModuleLibrary);
`$3
`js
//
// You can register a component manually
//
var Vue = require('vue');
var ModuleLibrary = require('vfg-field-sourcecode');var YourComponent = Vue.extend({
...
components: {
'field-sourcecode': ModuleLibrary.FieldSourcecode
},
...
});
//
// or register the whole module with vue
//
var Vue = require('vue');
var ModuleLibrary = require('vfg-field-sourcecode');
// Install this library
Vue.use(ModuleLibrary);
`$3
`html
`$3
`json
schema: {
fields: [
{
type: "sourcecode",
label: "source code",
model: "source"
}
]
}
``See the GitHub release history.
See CONTRIBUTING.md.