Slots mixin
This mixin provides a slots
computed property that returns an array of slot names. Can be used when you need to extend a component and add extend all his slots
Usage
vue
<template>
<v-text-field v-bind="$attrs" :type="type" v-on="$listeners">
<template v-for="s in slots" #[s]>
<slot :name="s" />
</template>
</v-text-field>
</template>
<script>
import { slots as slotsMixin } from '@we/nuxt/mixins'
export default {
mixins: [slotsMixin],
}
</script>