vue-form-json-schema
vue-form-json-schema copied to clipboard
There was an error using dynamicOptions : got Undefined
{
component: 'b-form-group',
model: 'wss???',
fieldOptions: {
class: [
'mb-2'
],
label: '',
'label-cols-md': 3,
'label-align-md': 'right',
'content-cols-md': 9
},
children: [
{
component: 'b-form-checkbox-group',
model: 'DataBFormCheckboxGroup02',
valueProp: 'checked',
fieldOptions: {
class: [
'col-form-label',
'font-weight-normal'
],
attrs: { },
props: {
options: [
{
text: 'item',
value: '01'
}
]
},
on: [
'input'
]
},
children: [
]
}
]
},
{
component: 'div',
model: 'DataBFormCheckboxGroup02',
dynamicOptions: {
schema: {
type: 'object',
properties: {
DataBFormCheckboxGroup02: {
const: ['01']
},
},
required: [
'DataBFormCheckboxGroup02'
]
},
options: {
fieldOptions: {
class: [
'text-danger py-2 border'
]
},
children: [
{
component: 'b-form-group',
model: 'wss???',
fieldOptions: {
class: [
'mb-2'
],
label: 'label:',
'label-cols-md': 3,
'label-align-md': 'right',
'content-cols-md': 9
},
children: [
{
component: 'b-form-textarea',
model: 'dataTextarea02',
fieldOptions: {
on: [
'input'
],
props: {
rows: 3,
placeholder: 'input content...'
}
}
}
]
},
]
},
}
},
There was an error in console
[Vue warn]: Invalid prop: type check failed for prop "vfjsFieldId". Expected String with value "undefined", got Undefined
found in
---> <VueFormJsonSchemaFieldComponent>... (1 recursive calls)
<VueFormJsonSchema>
<Forms> at ...
But the data normal response, just the above error in the console, please ask me where to write something missing?
this is sandbox link:sandbox