Skip to content

Commit

Permalink
Add a props to change the main tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bijaoui committed May 16, 2017
1 parent 452d492 commit 90b0767
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/formGenerator.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="pug">
div
fieldset.vue-form-generator(v-if='schema != null')
fieldset.vue-form-generator(v-if='schema != null', :is='tag')
template(v-for='field in fields')
.form-group(v-if='fieldVisible(field)', :class='getFieldRowClasses(field)')
label
Expand Down Expand Up @@ -70,7 +70,12 @@ div
isNewModel: {
type: Boolean,
default: false
}
},
tag: {
type: String,
default: 'fieldset'
}
},
data () {
Expand Down

0 comments on commit 90b0767

Please sign in to comment.