wotamann / vuetify-form-base

Schema-based Form Generator - Vue.js 2.0 Component based on Vuetify 2.0
https://wotamann.github.io/vuetify
232 stars 64 forks source link

Custom Component With Slots #140

Open twofivelabs opened 1 year ago

twofivelabs commented 1 year ago

I have my custom component working, but when I try to use the 'slots' within it doesn't work. I'm not entirely sure if there are some custom variables at play causing some challenges.

Vue.component('v-plainText', () => import('./../../components/Form/vPlainText.vue') )

Inside of form

<v-form-base>
   <template #slot-plain-text="{obj}">
       Using Slot
    </template>
</v-form-base>
<slot name="slot-plain-text" v-bind="{ obj }">
      Inside my custom component << This will show when rendering my custom component
</slot>

This does not work. is there a specific way to call custom slots?