Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There was an error using dynamicOptions : got Undefined #117

Open
szwss opened this issue Oct 25, 2021 · 0 comments
Open

There was an error using dynamicOptions : got Undefined #117

szwss opened this issue Oct 25, 2021 · 0 comments

Comments

@szwss
Copy link

szwss commented Oct 25, 2021

{
    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant