I am currently in the process of developing a wrapper for the bootstrap-vue Table component. This particular component utilizes slots to specify cell templates, similar to the following example:
<b-table :items="itemsProvider" v-bind="options">
<template v-slot:cell(id)="data">
///...template for cells with key "id"
</template>
</b-table>
The wrapper I am creating looks like this:
<div>
<b-table :items="itemsProvider" v-bind="options" >
<slot></slot>
</b-table>
<b-pagination
v-model="currentPage"
:total-rows="rows"
:per-page="perPage"
/>
</div>
My intention is to use this component as follows:
<TableAjax :options="options">
<template v-slot:cell(id)="data">
///...template for cells with key "id"
</template>
</TableAjax>
Unfortunately, due to the named slots required by the b-table component, I am facing challenges passing them from the wrapper. How can I overcome this issue?