uwla / vue-form-builder

Vue plugin that generates beautiful forms from declarative rules.
https://uwla.github.io/vue-form-builder/demo/
MIT License
5 stars 0 forks source link

When using field objects, the components don't render #36

Open radiantone opened 3 days ago

radiantone commented 3 days ago
fields: [
        { name: 'name', type: 'text', props: { min: 3, max: 30, required: true} },
        { name: 'email', type: 'email', label: 'Email address', props: { required: true } },
        { name: 'password', type: 'password', props: { min: 10, required: true } },
        { name: 'photo', type: 'file', props: { accept: 'image/*' } },
        { name: 'info', type: 'textarea', props: { rows: 10 } },
      ]

This doesn't seem to work. The fields don't render. Just the labels.

uwla commented 1 day ago

I remember a while ago I could not get it to work with Vue3 in NuxtJS because Vue3 was not registering the VFB's components, but later I solved it somehow.

Are you importing VFB like this?

import VueFormBuilder from '@uwlajs/vue-form-builder'
const app = createApp(App)
app.use(VueFormBuilder)

Please, give some sample code of your setup.