where all props other than these special 3 (prefixed “v-”) should end up in :rest attr. Currently I’m getting warnings on these props. Is there a way to fix it? include won’t work since I don’t know these props. There’s also a way of declaring def __global__?(name) but it would silence all these warnings for all components…
The idea behind the validation is that you get feedback when you fat finger the attributes. Allowing everything would mean you loose a good part of the validation provided.
I understand. But in my case I want to disable that validation for this component, since I’m creating a wrapper component. I’m not interested in these props as I just want to pass them through, in my case to the Vue component.
What I’d like to keep is documentation generated thanks to :attr and check if all required params are provided.
Basically, it would all be fine if I could somehow disable warning on unknown props. According to my udnerstanding, it’s not possible right now
Isn’t the way to do a wrapper component to use slots? Make a slot for the inner contents and then that inner item can have whatever attrs it wants. Your wrapper then would only define atrrs for things it specifically uses.