akxcv/vuera

Passing components from React into Vue component named slot

mwsiddeeq15 opened this issue · 1 comments

I'm trying to pass a React component into a Vue component's named slot, but I only see a way to pass into a default slot. Is there a way to specify which slot to pass it into?

Currently wrappers map only default slot into children prop in React. Named slots are currently ignored.

The starting point for implementation is around these lines:

},
attrs: this.$attrs,
on: this.$listeners,

this.$slots (and maybe this.$scopedSlots) should be passed down the same way as the $attrs currently do. Then react-wrapper should pick them up and convert to React as it currently does for children. Seems doable.