Skip to content

Commit 90b0767

Browse files
author
Lionel Bijaoui
committed
Add a props to change the main tag
1 parent 452d492 commit 90b0767

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/formGenerator.vue

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template lang="pug">
22
div
3-
fieldset.vue-form-generator(v-if='schema != null')
3+
fieldset.vue-form-generator(v-if='schema != null', :is='tag')
44
template(v-for='field in fields')
55
.form-group(v-if='fieldVisible(field)', :class='getFieldRowClasses(field)')
66
label
@@ -70,7 +70,12 @@ div
7070
isNewModel: {
7171
type: Boolean,
7272
default: false
73-
}
73+
},
74+
75+
tag: {
76+
type: String,
77+
default: 'fieldset'
78+
}
7479
},
7580
7681
data () {

0 commit comments

Comments
 (0)