Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (var key in app.html) {
- Vue.component(key, {
- template: `<div><vue-form-generator :model="model"
- :schema="schema"
- :options="formOptions"
- ref="key"></vue-form-generator>{{ key }}</div>`,
- mounted() {
- this.schema = app.html[key]
- },
- data: function () {
- return {
- schema: app.html[key],
- key: '',
- formOptions: this.formOptions,
- model: this.model,
- }
- },
- }
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement