New VUE component based off of Q-Tabs #11669
-
Hi! So I am trying to make a new VUE component utilizing the Q-Tabs component as a basis. Although I am having trouble actually producing a with the new component without directly writing it within the component. How can I make this new component so that I can simply write within much like how Quasar has it normally. I hope this questions makes sense, I will clarify for any confusion. Below I have posted the component I have so far.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'd suggest to put the template and script code into a file called
|
Beta Was this translation helpful? Give feedback.
-
make an <!-- wrapper -->
<template>
<q-tabs>
<template v-for="(_, slot) of $slots" v-slot:[slot]="scope">
<slot :name="slot", v-bind="scope || {}"/>
</template>
</q-tabs>
<template>
<!-- parent -->
<template>
<wrapper>
<q-tab></q-tab>
</wrapper>
<template> |
Beta Was this translation helpful? Give feedback.
make an
invisible wrapper
.