I had an issue with this config
data () {
return {
valid: false,
success: false,
loading: true,
message: "",
model: {
tournamentManagers: []
},
schema: {
fields: [
{
type: "array",
model: "tournamentManagers",
items: {
type: "select",
values: []
}
}
]
},
formOptions: {
validateAfterLoad: true,
validateAfterChanged: true,
validateAsync: true
}
}
},
It told me it couldnt find the element "field-select", which comes from
getFieldType(fieldSchema) {
return "field-" + fieldSchema.type;
},
Thats becuase the components property in the array element is not there, fixed by by ovveriding that at import
import fieldArray from "vfg-field-array/src/components/field-array.vue";
import fieldComponents from "vue-form-generator/src/utils/fieldsLoader.js";
fieldArray.components = fieldComponents
Vue.component("fieldArray", fieldArray);
But of course it would be better if this could be fixed in the module itself
I had an issue with this config
It told me it couldnt find the element "field-select", which comes from
Thats becuase the components property in the array element is not there, fixed by by ovveriding that at import
But of course it would be better if this could be fixed in the module itself