Skip to content

Commit 58093c7

Browse files
committed
Fix #84
1 parent 7a83777 commit 58093c7

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/formGenerator.vue

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
<template lang="jade">
22
div
33
fieldset.vue-form-generator(v-if="schema != null")
4-
.form-group(v-for="field in fields", v-if="fieldVisible(field)", :class="getFieldRowClasses(field)")
5-
label {{ field.label }}
6-
span.help(v-if="field.help")
7-
i.icon
8-
.helpText {{{field.help}}}
9-
.field-wrap
10-
component(:is="getFieldType(field)", :disabled="fieldDisabled(field)", :model.sync="model", :schema.sync="field")
11-
.buttons(v-if="field.buttons && field.buttons.length > 0")
12-
button(v-for="btn in field.buttons", @click="btn.onclick(model, field)", :class="btn.classes") {{ btn.label }}
13-
.hint(v-if="field.hint") {{ field.hint }}
14-
.errors(v-if="field.errors && field.errors.length > 0")
15-
span(v-for="error in field.errors", track-by="$index") {{ error }}
4+
label {{ field.label }}
5+
span.help(v-if="field.help")
6+
i.icon
7+
.helpText {{{field.help}}}
8+
.field-wrap
9+
component(:is="getFieldType(field)", :disabled="fieldDisabled(field)", :model.sync="model", :schema.sync="field")
10+
.buttons(v-if="field.buttons && field.buttons.length > 0")
11+
button(v-for="btn in field.buttons", @click="btn.onclick(model, field)", :class="btn.classes") {{ btn.label }}
12+
.hint(v-if="field.hint") {{ field.hint }}
13+
.errors(v-if="field.errors && field.errors.length > 0")
14+
span(v-for="error in field.errors", track-by="$index") {{ error }}
1615
</template>
1716

1817
<script>

0 commit comments

Comments
 (0)