Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. for (var key in app.html) {
  2. Vue.component(key, {
  3. template: `<div><vue-form-generator :model="model"
  4. :schema="schema"
  5. :options="formOptions"
  6. ref="key"></vue-form-generator>{{ key }}</div>`,
  7. mounted() {
  8. this.schema = app.html[key]
  9. },
  10. data: function () {
  11. return {
  12. schema: app.html[key],
  13. key: '',
  14. formOptions: this.formOptions,
  15. model: this.model,
  16. }
  17. },
  18. }
  19. )
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement