@@ -9,7 +9,7 @@ div.vue-form-generator(v-if='schema != null')
9
9
i.icon
10
10
.helpText ( v-html ='field.help' )
11
11
.field-wrap
12
- component( :is ='getFieldType(field)' , :disabled ='fieldDisabled(field)' , :model ='model' , :schema.sync ='field' , @model-updated ='modelUpdated' , @validated ="onFieldValidated" )
12
+ component( :is ='getFieldType(field)' , :disabled ='fieldDisabled(field)' , :model ='model' , :schema ='field' , :options = 'options ' , @model-updated ='modelUpdated' , @validated ="onFieldValidated" )
13
13
.buttons ( v-if ='buttonVisibility(field)' )
14
14
button( v-for ='btn in field.buttons' , @click ='buttonClickHandler(btn, field)' , :class ='btn.classes' ) {{ btn.label }}
15
15
.hint ( v-if ='field.hint' ) {{ field.hint }}
@@ -27,7 +27,7 @@ div.vue-form-generator(v-if='schema != null')
27
27
i.icon
28
28
.helpText ( v-html ='field.help' )
29
29
.field-wrap
30
- component( :is ='getFieldType(field)' , :disabled ='fieldDisabled(field)' , :model ='model' , :schema.sync ='field' , @model-updated ='modelUpdated' , @validated ="onFieldValidated" )
30
+ component( :is ='getFieldType(field)' , :disabled ='fieldDisabled(field)' , :model ='model' , :schema ='field' , :options = 'options' , @model-updated ='modelUpdated' , @validated ="onFieldValidated" )
31
31
.buttons ( v-if ='buttonVisibility(field)' )
32
32
button( v-for ='btn in field.buttons' , @click ='buttonClickHandler(btn, field)' , :class ='btn.classes' ) {{ btn.label }}
33
33
.hint ( v-if ='field.hint' ) {{ field.hint }}
@@ -150,22 +150,6 @@ div.vue-form-generator(v-if='schema != null')
150
150
}
151
151
},
152
152
153
- beforeMount () {
154
- // Add idPrefix to fields if fieldIdPrefix is set
155
- if (" groups" in this .schema ) {
156
- for (let group of this .schema .groups ) {
157
- for (let field of group .fields ) {
158
- field .idPrefix = this .options .fieldIdPrefix || " " ;
159
- }
160
- }
161
- }
162
- if (" fields" in this .schema ) {
163
- for (let field of this .schema .fields ) {
164
- field .idPrefix = this .options .fieldIdPrefix || " " ;
165
- }
166
- }
167
- },
168
-
169
153
mounted () {
170
154
this .$nextTick (() => {
171
155
if (this .model ) {
0 commit comments