I\'m trying to create a reusable component for iterating over items, filtering them, and adding some classes to the slot (if the item is even, odd, first, last etc..)
<
I have another way can get your aim, but not use render, still use slot.
The reusable component:
use _class to class keyword, so Vue.js will let _class as the common property.
Then in your use:
By the scope property, your can still get _class from slot.
After all, use render may be more conciseness. :)