body-cell-[name] slot should have precedence over body-cell slot
See original GitHub issueFirst of all, thank you for great framework. 🙏
Describe the bug
It is common that more specific things have precedence over general ones… see CSS rules for example, and it makes sense why it is so.
Therefore I would expect also same for cell slots, named one should be applied over general one.
This is not happening and solving it makes a lot of extra code and effort.
I want to have some basic template for cell “body-cell slot” and in some cases, for some columns I need to override this by body-cell-[name] slot
. It is not happening currently.
Codepen/jsFiddle/Codesandbox (required) https://codepen.io/luckylooke/pen/PoZwqeB
To Reproduce
- see the template, both slots are specified
- see the result, only general one is applied
Expected behavior template v-slot:body-cell-name to be applied for “name” column cells
Platform (please complete the following information): any, codepen is platform agnostic I think
Additional context I expect that same happen for header cells and should be corrected too.
I am willing to try to make MR during the weekend once one of the framework representatives will agree with the change.
Thank you, happy coding 👍
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Enhancement will be available in “quasar” v1.12.4.
Thank you for this enhancement, just a quick info related to this: Now I can customize all the cells and a single cell in particular, but only the Q-TD. If I need to customize the Q-TR (for a handling a click event for example) at this moment I can do this using the body slot, but this will override the other slots.
Is there a way to customize cells with their slot and at the same time customize the TR without rewriting all the body?