bootstrap-vue-next / bootstrap-vue-next

Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript
https://bootstrap-vue-next.github.io/bootstrap-vue-next/
MIT License
1.1k stars 108 forks source link

BTable scoped slots not matching #391

Open carlos-mora opened 2 years ago

carlos-mora commented 2 years ago

The header slot only receives the 'label' attribute of the field, missing all the rest. I confirmed that reading the component code. the ideal situation is to have the same scope BootstrapVue has, acording to the docs.

Property | Type | Description -- | -- | -- clearSelected | Function | Unselect all rows (applicable if the table is in selectable mode) column | String | The field's key value field | Object | The field's normalized definition object (from the fields prop) isFoot | Boolean | Will be true if the slot is being rendered in the table footer label | String | The field's label value selectAllRows | Function | Select all rows (applicable if the table is in selectable mode)

Obviously the selectable related properties are irrelevant as far as we don't implement that.

graemedewe commented 11 months ago

I'm also having this issue, I had to build my own replacement <b-table> component to be able to use <template #head(name)="{field}"> is there a plan to add it? I see a few issues have been raised regarding it with no work around

VividLemon commented 11 months ago

If you've had time to build a replacement, why not make a PR to fix it :thinking:

graemedewe commented 11 months ago

If you've had time to build a replacement, why not make a PR to fix it 🤔

I can do I wasn't sure what the plan was as there were a few issue threads on the matter, I'm away for a week I can look to do that on my return

mbutricodeloitte commented 5 months ago

Hi, has this issue been resolved? it appears to me that the scoped slots are still not working.

Thank you very much