@@ -9,7 +9,7 @@ div.vue-form-generator(v-if='schema != null')
99 i.icon
1010 .helpText ( v-html ='field.help' )
1111 .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" )
1313 .buttons ( v-if ='buttonVisibility(field)' )
1414 button( v-for ='btn in field.buttons' , @click ='buttonClickHandler(btn, field)' , :class ='btn.classes' ) {{ btn.label }}
1515 .hint ( v-if ='field.hint' ) {{ field.hint }}
@@ -27,7 +27,7 @@ div.vue-form-generator(v-if='schema != null')
2727 i.icon
2828 .helpText ( v-html ='field.help' )
2929 .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" )
3131 .buttons ( v-if ='buttonVisibility(field)' )
3232 button( v-for ='btn in field.buttons' , @click ='buttonClickHandler(btn, field)' , :class ='btn.classes' ) {{ btn.label }}
3333 .hint ( v-if ='field.hint' ) {{ field.hint }}
@@ -150,22 +150,6 @@ div.vue-form-generator(v-if='schema != null')
150150 }
151151 },
152152
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-
169153 mounted () {
170154 this .$nextTick (() => {
171155 if (this .model ) {
0 commit comments