Description
Description
Hello 👋,
I'm building a dashboard and I often need to put a table in a modal. Currently, I have to manually change the style of the modal and the table to match perfectly.
See this example: https://stackblitz.com/edit/github-2aatsynx?file=app%2Fpages%2Findex.vue
To solve this, I have to solution in mind:
- props to change the table and modal class;
- injection key to tell the table that it is in a modal.
To be honest, I don't like the second one as it removes a lot of flexibility.
The first one will introduce some new variants to all customization globally which is better than the current manual customization. For a Modal component, a new table
(or body-padding
or something even more generic but used to remove the padding from the body) props and a modal
props for the table to align the internal padding.
Maybe there is more solutions to this!
Additional context
No response